Commit ee81440f authored by keishi@webkit.org's avatar keishi@webkit.org

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):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106628 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 22390e18
2012-02-02 Keishi Hattori <keishi@webkit.org>
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):
2012-02-02 Roland Steiner <rolandsteiner@chromium.org>
Simplify SelectorChecker::checkSelector and checkOneSelector
......@@ -178,7 +178,7 @@ void ColorInputType::updateColorSwatch()
if (!colorSwatch)
return;
colorSwatch->style()->setProperty(CSSPropertyBackgroundColor, element()->value(), false, ASSERT_NO_EXCEPTION);
colorSwatch->ensureInlineStyleDecl()->setProperty(CSSPropertyBackgroundColor, element()->value(), false);
}
HTMLElement* ColorInputType::shadowColorSwatch() const
......
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