Title: [104081] trunk/Source/WebCore
Revision
104081
Author
[email protected]
Date
2012-01-04 14:56:13 -0800 (Wed, 04 Jan 2012)

Log Message

Revert unintentional changes to Element.cpp in r104068.

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

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (104080 => 104081)


--- trunk/Source/WebCore/ChangeLog	2012-01-04 22:55:43 UTC (rev 104080)
+++ trunk/Source/WebCore/ChangeLog	2012-01-04 22:56:13 UTC (rev 104081)
@@ -1,3 +1,10 @@
+2012-01-04  Ryosuke Niwa  <[email protected]>
+
+        Revert unintentional changes to Element.cpp in r104068.
+
+        * dom/Element.cpp:
+        (WebCore::Element::recalcStyleIfNeededAfterAttributeChanged):
+
 2012-01-03  Ryosuke Niwa  <[email protected]>
 
         REGRESSION (r92823): Background color not preserved when copying and pasting a table row

Modified: trunk/Source/WebCore/dom/Element.cpp (104080 => 104081)


--- trunk/Source/WebCore/dom/Element.cpp	2012-01-04 22:55:43 UTC (rev 104080)
+++ trunk/Source/WebCore/dom/Element.cpp	2012-01-04 22:56:13 UTC (rev 104081)
@@ -706,10 +706,7 @@
     
 void Element::recalcStyleIfNeededAfterAttributeChanged(Attribute* attr)
 {
-    if (!needsStyleRecalc())
-        return;
-
-    if (document()->attached() && document()->styleSelectorIfExists() && document()->styleSelectorIfExists()->hasSelectorForAttribute(attr->name().localName()))
+    if (document()->attached() && document()->styleSelector()->hasSelectorForAttribute(attr->name().localName()))
         setNeedsStyleRecalc();
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to