Bug 1388939, part 4 - Give clear names to the nsFrameManager methods for updating the registered undisplayed style contexts. r=dholbert

MozReview-Commit-ID: LZuleDSt6LR
This commit is contained in:
Jonathan Watt
2017-08-01 15:11:02 +01:00
parent 6c3978e020
commit 29d2a62fff
2 changed files with 8 additions and 7 deletions

View File

@@ -6081,7 +6081,8 @@ nsCSSFrameConstructor::AddFrameConstructionItemsInternal(nsFrameConstructorState
aState.mFrameManager->RegisterDisplayContentsStyleFor(aContent,
styleContext);
} else {
aState.mFrameManager->ChangeDisplayContents(aContent, styleContext);
aState.mFrameManager->ChangeRegisteredDisplayContentsStyleFor(aContent,
styleContext);
}
TreeMatchContext::AutoAncestorPusher ancestorPusher(aState.mTreeMatchContext);
@@ -9657,9 +9658,9 @@ nsCSSFrameConstructor::MaybeRecreateFramesForElement(Element* aElement)
LazyComputeBehavior::Assert);
if (oldDisplay == StyleDisplay::None) {
ChangeUndisplayedContent(aElement, newContext);
ChangeRegisteredDisplayNoneStyleFor(aElement, newContext);
} else {
ChangeDisplayContents(aElement, newContext);
ChangeRegisteredDisplayContentsStyleFor(aElement, newContext);
}
const nsStyleDisplay* disp = newContext->StyleDisplay();