Bug 1348073 - Part 2. Enable lazy frame construction for editable regions. r=Ehsan

MozReview-Commit-ID: C92SY2lv8n8

--HG--
extra : rebase_source : 47848b4ec0285991826ecd2bbdd2b5cf692430b3
This commit is contained in:
Makoto Kato 2017-08-21 15:30:07 +09:00
Родитель fa46fdd1ad
Коммит d458d5c295
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -7284,7 +7284,7 @@ nsCSSFrameConstructor::MaybeConstructLazily(Operation aOperation,
if (aChild->IsRootOfAnonymousSubtree() ||
(aChild->HasFlag(NODE_IS_IN_SHADOW_TREE) &&
!aChild->IsInNativeAnonymousSubtree()) ||
aChild->IsEditable() || aChild->IsXULElement()) {
aChild->IsXULElement()) {
return false;
}
} else { // CONTENTAPPEND
@ -7293,7 +7293,7 @@ nsCSSFrameConstructor::MaybeConstructLazily(Operation aOperation,
for (nsIContent* child = aChild; child; child = child->GetNextSibling()) {
NS_ASSERTION(!child->IsRootOfAnonymousSubtree(),
"Should be coming through the CONTENTAPPEND case");
if (child->IsXULElement() || child->IsEditable()) {
if (child->IsXULElement()) {
return false;
}
}