Title: [102951] trunk/Source/WebCore
Revision
102951
Author
[email protected]
Date
2011-12-15 09:53:46 -0800 (Thu, 15 Dec 2011)

Log Message

Don't invoke CSSStyleSelector::pushParent before Text::recalcTextStyle
https://bugs.webkit.org/show_bug.cgi?id=74575

Reviewed by Darin Adler.
        
Text::recalcTextStyle never enters the style selector so pushing the state is not necessary

* dom/Element.cpp:
(WebCore::Element::recalcStyle):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (102950 => 102951)


--- trunk/Source/WebCore/ChangeLog	2011-12-15 17:50:41 UTC (rev 102950)
+++ trunk/Source/WebCore/ChangeLog	2011-12-15 17:53:46 UTC (rev 102951)
@@ -1,3 +1,15 @@
+2011-12-15  Antti Koivisto  <[email protected]>
+
+        Don't invoke CSSStyleSelector::pushParent before Text::recalcTextStyle
+        https://bugs.webkit.org/show_bug.cgi?id=74575
+
+        Reviewed by Darin Adler.
+        
+        Text::recalcTextStyle never enters the style selector so pushing the state is not necessary
+
+        * dom/Element.cpp:
+        (WebCore::Element::recalcStyle):
+
 2011-12-15  Chris Marrin  <[email protected]>
 
         Fixed error in Target.pri.

Modified: trunk/Source/WebCore/dom/Element.cpp (102950 => 102951)


--- trunk/Source/WebCore/dom/Element.cpp	2011-12-15 17:50:41 UTC (rev 102950)
+++ trunk/Source/WebCore/dom/Element.cpp	2011-12-15 17:53:46 UTC (rev 102951)
@@ -1138,7 +1138,6 @@
     bool forceCheckOfAnyElementSibling = false;
     for (Node *n = firstChild(); n; n = n->nextSibling()) {
         if (n->isTextNode()) {
-            parentPusher.push();
             static_cast<Text*>(n)->recalcTextStyle(change);
             continue;
         } 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to