Backed out changeset 369a5330ddec (bug 979782) for failing Linux crashtests at layout/style/crashtests/1402472.html assertion count 2 is more than expected 0 assertions. r=backout on a CLOSED TREE

This commit is contained in:
Sebastian Hengst 2017-10-31 11:25:00 +01:00
Родитель 81738754cd
Коммит 5a9d68d2dc
1 изменённых файлов: 6 добавлений и 2 удалений

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

@ -7229,7 +7229,8 @@ nsCSSFrameConstructor::CheckBitsForLazyFrameConstruction(nsIContent* aParent)
// subtree.
//
// Also, it's fine if one of the nodes without primary frame is a display:
// contents node.
// contents node except if it's the direct ancestor of the children we're
// recreating frames for.
bool noPrimaryFrame = false;
bool needsFrameBitSet = false;
nsIContent* content = aParent;
@ -7274,8 +7275,11 @@ nsCSSFrameConstructor::MaybeConstructLazily(Operation aOperation,
nsIContent* aContainer,
nsIContent* aChild)
{
// XXXmats no lazy frames for display:contents direct descendants yet
// (bug 979782).
if (mPresShell->GetPresContext()->IsChrome() || !aContainer ||
aContainer->IsInNativeAnonymousSubtree() || aContainer->IsXULElement()) {
aContainer->IsInNativeAnonymousSubtree() || aContainer->IsXULElement() ||
GetDisplayContentsStyleFor(aContainer)) {
return false;
}