ColorInputType needs to use ensureInlineStyleDecl
authorkeishi@webkit.org <keishi@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 3 Feb 2012 05:44:35 +0000 (05:44 +0000)
committerkeishi@webkit.org <keishi@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 3 Feb 2012 05:44:35 +0000 (05:44 +0000)
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: https://svn.webkit.org/repository/webkit/trunk@106628 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/html/ColorInputType.cpp

index f413e3b..1a15637 100644 (file)
@@ -1,3 +1,16 @@
+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
index d7bd81f..071cc34 100644 (file)
@@ -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