Bug 1429125: Enable lazy frame construction in the browser chrome, but not XUL yet. r?heycam
MozReview-Commit-ID: 3dwQ9J5nFcS
--- a/layout/base/nsCSSFrameConstructor.cpp
+++ b/layout/base/nsCSSFrameConstructor.cpp
@@ -7217,18 +7217,18 @@ nsCSSFrameConstructor::CheckBitsForLazyF
//
// But we disable lazy frame construction for shadow trees... We should fix
// that, too.
bool
nsCSSFrameConstructor::MaybeConstructLazily(Operation aOperation,
nsIContent* aContainer,
nsIContent* aChild)
{
- if (mPresShell->GetPresContext()->IsChrome() || !aContainer ||
- aContainer->IsInNativeAnonymousSubtree() || aContainer->IsXULElement()) {
+ if (!aContainer || aContainer->IsInNativeAnonymousSubtree() ||
+ aContainer->IsXULElement()) {
return false;
}
if (aOperation == CONTENTINSERT) {
if (aChild->IsRootOfAnonymousSubtree() || aChild->IsXULElement()) {
return false;
}
} else { // CONTENTAPPEND