Title: [93503] trunk/Source/WebCore
- Revision
- 93503
- Author
- [email protected]
- Date
- 2011-08-22 04:53:19 -0700 (Mon, 22 Aug 2011)
Log Message
Chrome::setSelectedColorInColorChooser shouldn't be called when color chooser sets a new color
https://bugs.webkit.org/show_bug.cgi?id=66658
Reviewed by Kent Tamura.
* html/ColorInputType.cpp:
(WebCore::ColorInputType::colorSelected): Call setValueFromRenderer instead of setValue.
* html/ColorInputType.h:
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (93502 => 93503)
--- trunk/Source/WebCore/ChangeLog 2011-08-22 10:05:48 UTC (rev 93502)
+++ trunk/Source/WebCore/ChangeLog 2011-08-22 11:53:19 UTC (rev 93503)
@@ -1,3 +1,14 @@
+2011-08-22 Keishi Hattori <[email protected]>
+
+ Chrome::setSelectedColorInColorChooser shouldn't be called when color chooser sets a new color
+ https://bugs.webkit.org/show_bug.cgi?id=66658
+
+ Reviewed by Kent Tamura.
+
+ * html/ColorInputType.cpp:
+ (WebCore::ColorInputType::colorSelected): Call setValueFromRenderer instead of setValue.
+ * html/ColorInputType.h:
+
2011-08-18 Pavel Podivilov <[email protected]>
Web Inspector: extract breakpoint management code to a separate class and add tests.
Modified: trunk/Source/WebCore/html/ColorInputType.cpp (93502 => 93503)
--- trunk/Source/WebCore/html/ColorInputType.cpp 2011-08-22 10:05:48 UTC (rev 93502)
+++ trunk/Source/WebCore/html/ColorInputType.cpp 2011-08-22 11:53:19 UTC (rev 93503)
@@ -105,11 +105,6 @@
return Color(element()->value());
}
-void ColorInputType::setValueAsColor(const Color& color) const
-{
- element()->setValue(color.serialized(), true);
-}
-
void ColorInputType::createShadowSubtree()
{
Document* document = element()->document();
@@ -174,7 +169,8 @@
{
if (element()->disabled() || element()->readOnly())
return;
- setValueAsColor(color);
+ element()->setValueFromRenderer(color.serialized());
+ updateColorSwatch();
}
bool ColorInputType::isColorInputType() const
Modified: trunk/Source/WebCore/html/ColorInputType.h (93502 => 93503)
--- trunk/Source/WebCore/html/ColorInputType.h 2011-08-22 10:05:48 UTC (rev 93502)
+++ trunk/Source/WebCore/html/ColorInputType.h 2011-08-22 11:53:19 UTC (rev 93503)
@@ -53,7 +53,6 @@
virtual String fallbackValue();
virtual String sanitizeValue(const String&);
virtual Color valueAsColor() const;
- virtual void setValueAsColor(const Color&) const;
virtual void createShadowSubtree();
virtual void valueChanged();
virtual void handleClickEvent(MouseEvent*);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes