Title: [106628] trunk/Source/WebCore
Revision
106628
Author
[email protected]
Date
2012-02-02 21:44:35 -0800 (Thu, 02 Feb 2012)

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

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (106627 => 106628)


--- trunk/Source/WebCore/ChangeLog	2012-02-03 05:42:14 UTC (rev 106627)
+++ trunk/Source/WebCore/ChangeLog	2012-02-03 05:44:35 UTC (rev 106628)
@@ -1,3 +1,16 @@
+2012-02-02  Keishi Hattori  <[email protected]>
+
+        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  <[email protected]>
 
         Simplify SelectorChecker::checkSelector and checkOneSelector

Modified: trunk/Source/WebCore/html/ColorInputType.cpp (106627 => 106628)


--- trunk/Source/WebCore/html/ColorInputType.cpp	2012-02-03 05:42:14 UTC (rev 106627)
+++ trunk/Source/WebCore/html/ColorInputType.cpp	2012-02-03 05:44:35 UTC (rev 106628)
@@ -178,7 +178,7 @@
     if (!colorSwatch)
         return;
 
-    colorSwatch->style()->setProperty(CSSPropertyBackgroundColor, element()->value(), false, ASSERT_NO_EXCEPTION);
+    colorSwatch->ensureInlineStyleDecl()->setProperty(CSSPropertyBackgroundColor, element()->value(), false);
 }
 
 HTMLElement* ColorInputType::shadowColorSwatch() const
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to