Changeset 101310 in webkit


Ignore:
Timestamp:
Nov 28, 2011 5:31:36 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[MutationObservers] Fix build breakage after CSSInlineDeclaration refactor
https://bugs.webkit.org/show_bug.cgi?id=73243

Patch by Rafael Weinstein <rafaelw@chromium.org> on 2011-11-28
Reviewed by Ryosuke Niwa.

No tests needed. This patch only contains compile fixes.

  • css/CSSMutableStyleDeclaration.cpp:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r101309 r101310  
     12011-11-28  Rafael Weinstein  <rafaelw@chromium.org>
     2
     3        [MutationObservers] Fix build breakage after CSSInlineDeclaration refactor
     4        https://bugs.webkit.org/show_bug.cgi?id=73243
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        No tests needed. This patch only contains compile fixes.
     9
     10        * css/CSSMutableStyleDeclaration.cpp:
     11
    1122011-11-28  Jon Lee  <jonlee@apple.com>
    213
  • trunk/Source/WebCore/css/CSSInlineStyleDeclaration.h

    r101172 r101310  
    4848};
    4949
     50inline CSSInlineStyleDeclaration* toCSSInlineStyleDeclaration(CSSMutableStyleDeclaration* decl)
     51{
     52    ASSERT(!decl || decl->isInlineStyleDeclaration());
     53    return static_cast<CSSInlineStyleDeclaration*>(decl);
     54}
     55
    5056} // namespace WebCore
    5157
  • trunk/Source/WebCore/css/CSSMutableStyleDeclaration.cpp

    r101250 r101310  
    2424
    2525#include "CSSImageValue.h"
     26#include "CSSInlineStyleDeclaration.h"
    2627#include "CSSParser.h"
    2728#include "CSSPropertyLonghand.h"
     
    6667            return;
    6768
    68         s_mutationRecipients = MutationObserverInterestGroup::createForAttributesMutation(s_currentDecl->element(), HTMLNames::styleAttr);
     69        CSSInlineStyleDeclaration* inlineDecl = toCSSInlineStyleDeclaration(s_currentDecl);
     70        s_mutationRecipients = MutationObserverInterestGroup::createForAttributesMutation(inlineDecl->element(), HTMLNames::styleAttr);
    6971        if (s_mutationRecipients->isEmpty()) {
    7072            s_mutationRecipients.clear();
     
    7274        }
    7375
    74         AtomicString oldValue = s_mutationRecipients->isOldValueRequested() ? s_currentDecl->element()->getAttribute(HTMLNames::styleAttr) : nullAtom;
    75         s_mutation = MutationRecord::createAttributes(s_currentDecl->element(), HTMLNames::styleAttr, oldValue);
     76        AtomicString oldValue = s_mutationRecipients->isOldValueRequested() ? inlineDecl->element()->getAttribute(HTMLNames::styleAttr) : nullAtom;
     77        s_mutation = MutationRecord::createAttributes(inlineDecl->element(), HTMLNames::styleAttr, oldValue);
    7678    }
    7779
Note: See TracChangeset for help on using the changeset viewer.