Issue #2112 - Part 6: Remove IsStyledByServo function and callers

This commit is contained in:
FranklinDM 2024-03-25 02:09:12 +08:00 committed by roytam1
commit 10bf8705d0
13 changed files with 16 additions and 181 deletions

View file

@ -281,7 +281,7 @@ nsHTMLFramesetFrame::Init(nsIContent* aContent,
for (uint32_t i = childX; i < numChildren; i++) {
nsIContent *child = mContent->GetChildAt(i);
child->UnsetFlags(NODE_DESCENDANTS_NEED_FRAMES | NODE_NEEDS_FRAME);
child->UnsetRestyleFlagsIfGecko();
child->UnsetRestyleFlags();
}
break;
}
@ -289,7 +289,7 @@ nsHTMLFramesetFrame::Init(nsIContent* aContent,
child->UnsetFlags(NODE_DESCENDANTS_NEED_FRAMES | NODE_NEEDS_FRAME);
// Also clear the restyle flags in the child like
// nsCSSFrameConstructor::ProcessChildren does.
child->UnsetRestyleFlagsIfGecko();
child->UnsetRestyleFlags();
// IMPORTANT: This must match the conditions in
// nsCSSFrameConstructor::ContentAppended/Inserted/Removed