Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(898)

Unified Diff: Source/core/html/HTMLInputElement.cpp

Issue 513783002: Dispatch change event for input type=color when colorpicker is closed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Mac test fix Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/html/HTMLInputElement.cpp
diff --git a/Source/core/html/HTMLInputElement.cpp b/Source/core/html/HTMLInputElement.cpp
index 5afcb218a6af313fca1a3ac1b048ca26c9e4ed91..ec911d97caae5774dc209fbcda140a0bbe95dde7 100644
--- a/Source/core/html/HTMLInputElement.cpp
+++ b/Source/core/html/HTMLInputElement.cpp
@@ -1482,6 +1482,14 @@ void HTMLInputElement::selectColorInColorChooser(const Color& color)
static_cast<ColorInputType*>(m_inputType.get())->didChooseColor(color);
}
+void HTMLInputElement::endColorChooser()
+{
+ // FIXME: Remove type check and static_cast.
+ if (type() != InputTypeNames::color)
keishi 2014/09/17 08:15:54 We decided not to add any more if statements that
Habib Virji 2014/09/17 08:30:42 Ok, will make a change and push in new patch.
Habib Virji 2014/09/18 12:42:05 Done.
+ return;
+ static_cast<ColorInputType*>(m_inputType.get())->didEndChooser();
+}
+
HTMLElement* HTMLInputElement::list() const
{
return dataList();

Powered by Google App Engine
This is Rietveld 408576698