mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
Bug 996796 patch 15 - Copy the eSkipParentDisplayBasedStyleFixup bit from ReparentStyleContext as well. r=heycam
This commit is contained in:
parent
b522eb1aa3
commit
e4c8b20f6f
@ -1478,6 +1478,14 @@ nsStyleSet::ResolveStyleWithReplacement(Element* aElement,
|
||||
"aElement should be the element and not the pseudo-element");
|
||||
}
|
||||
|
||||
if (aElement && aElement->IsRootOfAnonymousSubtree()) {
|
||||
// For anonymous subtree roots, don't tweak "display" value based on whether
|
||||
// or not the parent is styled as a flex/grid container. (If the parent
|
||||
// has anonymous-subtree kids, then we know it's not actually going to get
|
||||
// a flex/grid container frame, anyway.)
|
||||
flags |= eSkipParentDisplayBasedStyleFixup;
|
||||
}
|
||||
|
||||
return GetContext(aNewParentContext, ruleNode, visitedRuleNode,
|
||||
aOldStyleContext->GetPseudo(), pseudoType,
|
||||
elementForAnimation, flags);
|
||||
|
Loading…
Reference in New Issue
Block a user