Bug 1348073 - Part 2. Enable lazy frame construction for editable regions. r=Ehsan
authorMakoto Kato <m_kato@ga2.so-net.ne.jp>
Mon, 21 Aug 2017 15:30:07 +0900
changeset 425766 6b27a9f18281f5a7d670574629d102dcaabf417c
parent 425765 118150d80e151e8d5e4ea8c58dcdd6642622d688
child 425767 81e9aa4a4fbc0e72a9872f72f90507c31780cfc3
push id7761
push userjlund@mozilla.com
push dateFri, 15 Sep 2017 00:19:52 +0000
treeherdermozilla-beta@c38455951db4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersEhsan
bugs1348073
milestone57.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1348073 - Part 2. Enable lazy frame construction for editable regions. r=Ehsan MozReview-Commit-ID: C92SY2lv8n8
layout/base/nsCSSFrameConstructor.cpp
--- a/layout/base/nsCSSFrameConstructor.cpp
+++ b/layout/base/nsCSSFrameConstructor.cpp
@@ -7279,26 +7279,26 @@ nsCSSFrameConstructor::MaybeConstructLaz
       GetDisplayContentsStyleFor(aContainer)) {
     return false;
   }
 
   if (aOperation == CONTENTINSERT) {
     if (aChild->IsRootOfAnonymousSubtree() ||
         (aChild->HasFlag(NODE_IS_IN_SHADOW_TREE) &&
          !aChild->IsInNativeAnonymousSubtree()) ||
-        aChild->IsEditable() || aChild->IsXULElement()) {
+        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");
-      if (child->IsXULElement() || child->IsEditable()) {
+      if (child->IsXULElement()) {
         return false;
       }
     }
   }
 
   // We can construct lazily; just need to set suitable bits in the content
   // tree.