Unreviewed buildfix for ENABLE(MUTATION_OBSERVERS) following r105642.
authorkling@webkit.org <kling@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 23 Jan 2012 23:01:20 +0000 (23:01 +0000)
committerkling@webkit.org <kling@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 23 Jan 2012 23:01:20 +0000 (23:01 +0000)
* css/CSSMutableStyleDeclaration.cpp:

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

Source/WebCore/ChangeLog
Source/WebCore/css/CSSMutableStyleDeclaration.cpp

index 2a2e6be..389e525 100644 (file)
@@ -1,3 +1,9 @@
+2012-01-23  Andreas Kling  <awesomekling@apple.com>
+
+        Unreviewed buildfix for ENABLE(MUTATION_OBSERVERS) following r105642.
+
+        * css/CSSMutableStyleDeclaration.cpp:
+
 2012-01-23  Philip Rogers  <pdr@google.com>
 
         Update uniteIfNonZero to use isZero.
index 4862685..af97aba 100644 (file)
@@ -65,14 +65,14 @@ public:
 #if ENABLE(MUTATION_OBSERVERS)
         if (!s_currentDecl->isInlineStyleDeclaration())
             return;
-        if (!s_currentDecl->element())
+        if (!s_currentDecl->parentElement())
             return;
-        m_mutationRecipients = MutationObserverInterestGroup::createForAttributesMutation(inlineDecl->element(), HTMLNames::styleAttr);
+        m_mutationRecipients = MutationObserverInterestGroup::createForAttributesMutation(s_currentDecl->parentElement(), HTMLNames::styleAttr);
         if (!m_mutationRecipients)
             return;
 
-        AtomicString oldValue = m_mutationRecipients->isOldValueRequested() ? inlineDecl->element()->getAttribute(HTMLNames::styleAttr) : nullAtom;
-        m_mutation = MutationRecord::createAttributes(inlineDecl->element(), HTMLNames::styleAttr, oldValue);
+        AtomicString oldValue = m_mutationRecipients->isOldValueRequested() ? s_currentDecl->parentElement()->getAttribute(HTMLNames::styleAttr) : nullAtom;
+        m_mutation = MutationRecord::createAttributes(s_currentDecl->parentElement(), HTMLNames::styleAttr, oldValue);
 #endif
     }