Bug 1799732 Part 1 - Replace GetChildList(kPrincipalList) with PrincipalChildList(). r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D161862
This commit is contained in:
Ting-Yu Lin
2022-11-11 23:44:16 +00:00
parent 0b9faf315f
commit b79841292f
4 changed files with 7 additions and 10 deletions

View File

@@ -5633,7 +5633,7 @@ static nsIFrame* FindAppendPrevSibling(nsIFrame* aParentFrame,
return aNextSibling->GetPrevSibling();
}
return aParentFrame->GetChildList(kPrincipalList).LastChild();
return aParentFrame->PrincipalChildList().LastChild();
}
/**
@@ -11365,8 +11365,7 @@ bool nsCSSFrameConstructor::WipeContainingBlock(
// Try to find one after all
nsIFrame* parentPrevCont = aFrame->GetPrevContinuation();
while (parentPrevCont) {
prevSibling =
parentPrevCont->GetChildList(kPrincipalList).LastChild();
prevSibling = parentPrevCont->PrincipalChildList().LastChild();
if (prevSibling) {
break;
}