Bug 1429088: Enable lazy frame construction for shadow trees. r?bz
There's no reason it wouldn't work after
bug 1404789.
MozReview-Commit-ID: 28X5x2rDqYn
--- a/layout/base/nsCSSFrameConstructor.cpp
+++ b/layout/base/nsCSSFrameConstructor.cpp
@@ -7214,28 +7214,25 @@ nsCSSFrameConstructor::MaybeConstructLaz
nsIContent* aChild)
{
if (mPresShell->GetPresContext()->IsChrome() || !aContainer ||
aContainer->IsInNativeAnonymousSubtree() || aContainer->IsXULElement()) {
return false;
}
if (aOperation == CONTENTINSERT) {
- if (aChild->IsRootOfAnonymousSubtree() ||
- (aChild->HasFlag(NODE_IS_IN_SHADOW_TREE) &&
- !aChild->IsInNativeAnonymousSubtree()) ||
- aChild->IsXULElement()) {
+ if (aChild->IsRootOfAnonymousSubtree() || aChild->IsXULElement()) {
return false;
}
} else { // CONTENTAPPEND
NS_ASSERTION(aOperation == CONTENTAPPEND,
"operation should be either insert or append");
for (nsIContent* child = aChild; child; child = child->GetNextSibling()) {
NS_ASSERTION(!child->IsRootOfAnonymousSubtree(),
- "Should be coming through the CONTENTAPPEND case");
+ "Should be coming through the CONTENTINSERT case");
if (child->IsXULElement()) {
return false;
}
}
}
// We can construct lazily; just need to set suitable bits in the content
// tree.