Changeset 106628 in webkit


Ignore:
Timestamp:
Feb 2, 2012 9:44:35 PM (12 years ago)
Author:
keishi@webkit.org
Message:

ColorInputType needs to use ensureInlineStyleDecl
https://bugs.webkit.org/show_bug.cgi?id=77699

Reviewed by Kent Tamura.

Because WebCore internally should use the more specific CSSMutableStyleDeclaration
http://trac.webkit.org/changeset/105739

  • html/ColorInputType.cpp:

(WebCore::ColorInputType::updateColorSwatch):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r106626 r106628  
     12012-02-02  Keishi Hattori  <keishi@webkit.org>
     2
     3        ColorInputType needs to use ensureInlineStyleDecl
     4        https://bugs.webkit.org/show_bug.cgi?id=77699
     5
     6        Reviewed by Kent Tamura.
     7
     8        Because WebCore internally should use the more specific CSSMutableStyleDeclaration
     9        http://trac.webkit.org/changeset/105739
     10
     11        * html/ColorInputType.cpp:
     12        (WebCore::ColorInputType::updateColorSwatch):
     13
    1142012-02-02  Roland Steiner  <rolandsteiner@chromium.org>
    215
  • trunk/Source/WebCore/html/ColorInputType.cpp

    r103168 r106628  
    179179        return;
    180180
    181     colorSwatch->style()->setProperty(CSSPropertyBackgroundColor, element()->value(), false, ASSERT_NO_EXCEPTION);
     181    colorSwatch->ensureInlineStyleDecl()->setProperty(CSSPropertyBackgroundColor, element()->value(), false);
    182182}
    183183
Note: See TracChangeset for help on using the changeset viewer.