Bug 1429125: Enable lazy frame construction in the browser chrome, but not XUL yet. r=heycam,tnikkel

This is on top of the patch to re-enable them in shadow trees for bug 1429088.

MozReview-Commit-ID: 3dwQ9J5nFcS
This commit is contained in:
Emilio Cobos Álvarez 2018-01-10 04:54:26 +01:00
Родитель 078f548313
Коммит 659200a710
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -7222,8 +7222,8 @@ 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;
}