Index: Source/core/html/forms/ColorInputType.cpp |
diff --git a/Source/core/html/forms/ColorInputType.cpp b/Source/core/html/forms/ColorInputType.cpp |
index 9881a63e4b6ed9d30a959700ca361863deabd393..014151d7dcb9ec81b6653b95f9060621d8fef8f6 100644 |
--- a/Source/core/html/forms/ColorInputType.cpp |
+++ b/Source/core/html/forms/ColorInputType.cpp |
@@ -44,6 +44,7 @@ |
#include "core/html/HTMLOptionElement.h" |
#include "core/html/forms/ColorChooser.h" |
#include "core/page/Chrome.h" |
+#include "core/rendering/RenderTheme.h" |
#include "core/rendering/RenderView.h" |
#include "platform/RuntimeEnabledFeatures.h" |
#include "platform/UserGestureIndicator.h" |
@@ -183,11 +184,14 @@ void ColorInputType::didChooseColor(const Color& color) |
return; |
element().setValueFromRenderer(color.serialized()); |
element().updateView(); |
- element().dispatchFormControlChangeEvent(); |
+ if (!RenderTheme::theme().isModalColorChooser()) |
+ element().dispatchFormControlChangeEvent(); |
} |
void ColorInputType::didEndChooser() |
{ |
+ if (RenderTheme::theme().isModalColorChooser()) |
+ element().dispatchFormControlChangeEvent(); |
m_chooser.clear(); |
} |