Revert unintentional changes to Element.cpp in r104068.
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Jan 2012 22:56:13 +0000 (22:56 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Jan 2012 22:56:13 +0000 (22:56 +0000)
* dom/Element.cpp:
(WebCore::Element::recalcStyleIfNeededAfterAttributeChanged):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@104081 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/dom/Element.cpp

index f8aa8b2816ab4a5c2c0ef33d750ea4e9b4112b73..37831bd2f7dfe1e90d9ca53072186fee7eeebb3f 100644 (file)
@@ -1,3 +1,10 @@
+2012-01-04  Ryosuke Niwa  <rniwa@webkit.org>
+
+        Revert unintentional changes to Element.cpp in r104068.
+
+        * dom/Element.cpp:
+        (WebCore::Element::recalcStyleIfNeededAfterAttributeChanged):
+
 2012-01-03  Ryosuke Niwa  <rniwa@webkit.org>
 
         REGRESSION (r92823): Background color not preserved when copying and pasting a table row
index 016efb619ef8620cd5807cf43e70304238ca3072..9679b1229fd12a57a8d4f6e2f0268fc637d7bef1 100644 (file)
@@ -706,10 +706,7 @@ void Element::updateAfterAttributeChanged(Attribute* attr)
     
 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();
 }