Commit 79f1c352 authored by kling@webkit.org's avatar kling@webkit.org
Browse files

Unreviewed buildfix for ENABLE(MUTATION_OBSERVERS) following r105642.

* css/CSSMutableStyleDeclaration.cpp:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@105645 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 81d631ba
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> 2012-01-23 Philip Rogers <pdr@google.com>
   
Update uniteIfNonZero to use isZero. Update uniteIfNonZero to use isZero.
...@@ -65,14 +65,14 @@ public: ...@@ -65,14 +65,14 @@ public:
#if ENABLE(MUTATION_OBSERVERS) #if ENABLE(MUTATION_OBSERVERS)
if (!s_currentDecl->isInlineStyleDeclaration()) if (!s_currentDecl->isInlineStyleDeclaration())
return; return;
if (!s_currentDecl->element()) if (!s_currentDecl->parentElement())
return; return;
m_mutationRecipients = MutationObserverInterestGroup::createForAttributesMutation(inlineDecl->element(), HTMLNames::styleAttr); m_mutationRecipients = MutationObserverInterestGroup::createForAttributesMutation(s_currentDecl->parentElement(), HTMLNames::styleAttr);
if (!m_mutationRecipients) if (!m_mutationRecipients)
return; return;
AtomicString oldValue = m_mutationRecipients->isOldValueRequested() ? inlineDecl->element()->getAttribute(HTMLNames::styleAttr) : nullAtom; AtomicString oldValue = m_mutationRecipients->isOldValueRequested() ? s_currentDecl->parentElement()->getAttribute(HTMLNames::styleAttr) : nullAtom;
m_mutation = MutationRecord::createAttributes(inlineDecl->element(), HTMLNames::styleAttr, oldValue); m_mutation = MutationRecord::createAttributes(s_currentDecl->parentElement(), HTMLNames::styleAttr, oldValue);
#endif #endif
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment