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

Unified Diff: Source/core/html/forms/TextFieldInputType.cpp

Issue 128133002: Update of change event for input type number (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added callback function in SpinButtonOwner and added new tests Created 6 years, 11 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/forms/TextFieldInputType.cpp
diff --git a/Source/core/html/forms/TextFieldInputType.cpp b/Source/core/html/forms/TextFieldInputType.cpp
index 807f2623d1cd28b3bfbb431cd43d1060fbc4538a..e7400a1368999f4ea19e879e9537fdc46170860a 100644
--- a/Source/core/html/forms/TextFieldInputType.cpp
+++ b/Source/core/html/forms/TextFieldInputType.cpp
@@ -222,6 +222,7 @@ void TextFieldInputType::handleKeydownEventForSpinButton(KeyboardEvent* event)
spinButtonStepDown();
else
return;
+ spinButtonDispatchChangeEvent();
tkent 2014/01/17 02:19:20 Calling a SpinButtonOwner function here looks stra
event->setDefaultHandled();
}
@@ -575,4 +576,9 @@ bool TextFieldInputType::shouldSpinButtonRespondToWheelEvents()
return shouldSpinButtonRespondToMouseEvents() && element().focused();
}
+void TextFieldInputType::spinButtonDispatchChangeEvent()
+{
+ element().dispatchFormControlChangeEvent();
+}
+
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698