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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user