Title: [164387] trunk/Source/WebCore
Revision
164387
Author
[email protected]
Date
2014-02-19 13:56:27 -0800 (Wed, 19 Feb 2014)

Log Message

isEditablePosition shouldn't trigger synchronous layout
https://bugs.webkit.org/show_bug.cgi?id=129026

Reviewed by Brent Fulgham.

Just trigger style recalc instead.

* editing/htmlediting.cpp:
(WebCore::isEditablePosition):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (164386 => 164387)


--- trunk/Source/WebCore/ChangeLog	2014-02-19 21:53:08 UTC (rev 164386)
+++ trunk/Source/WebCore/ChangeLog	2014-02-19 21:56:27 UTC (rev 164387)
@@ -1,3 +1,15 @@
+2014-02-19  Ryosuke Niwa  <[email protected]>
+
+        isEditablePosition shouldn't trigger synchronous layout
+        https://bugs.webkit.org/show_bug.cgi?id=129026
+
+        Reviewed by Brent Fulgham.
+
+        Just trigger style recalc instead.
+
+        * editing/htmlediting.cpp:
+        (WebCore::isEditablePosition):
+
 2014-02-19  Beth Dakin  <[email protected]>
 
         UIProcess needs to know the color of the page's extended background

Modified: trunk/Source/WebCore/editing/htmlediting.cpp (164386 => 164387)


--- trunk/Source/WebCore/editing/htmlediting.cpp	2014-02-19 21:53:08 UTC (rev 164386)
+++ trunk/Source/WebCore/editing/htmlediting.cpp	2014-02-19 21:56:27 UTC (rev 164387)
@@ -146,13 +146,13 @@
     if (!node)
         return false;
     if (updateStyle == UpdateStyle)
-        node->document().updateLayoutIgnorePendingStylesheets();
+        node->document().updateStyleIfNeeded();
     else
         ASSERT(updateStyle == DoNotUpdateStyle);
 
     if (node->renderer() && node->renderer()->isTable())
         node = node->parentNode();
-    
+
     return node->hasEditableStyle(editableType);
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to