Bug 996796 patch 15 - Copy the eSkipParentDisplayBasedStyleFixup bit from ReparentStyleContext as well. r=heycam

This commit is contained in:
L. David Baron 2014-08-02 19:37:46 -07:00
Родитель b522eb1aa3
Коммит e4c8b20f6f
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -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);