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

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

Issue 196933006: Do not dispatch 'change' events during pressing spin buttons for input[type=number]. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Test code updated Created 6 years, 8 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/HTMLTextFormControlElement.cpp
diff --git a/Source/core/html/HTMLTextFormControlElement.cpp b/Source/core/html/HTMLTextFormControlElement.cpp
index 0a0c83fd50aa24ac96ba60d9743a11c469c67610..f389dd44b0668d7b1e07e4fdebf5d9ffd2171f5a 100644
--- a/Source/core/html/HTMLTextFormControlElement.cpp
+++ b/Source/core/html/HTMLTextFormControlElement.cpp
@@ -183,7 +183,7 @@ void HTMLTextFormControlElement::select()
void HTMLTextFormControlElement::dispatchFormControlChangeEvent()
{
- if (m_textAsOfLastFormControlChangeEvent != value()) {
+ if (!equalIgnoringNullity(m_textAsOfLastFormControlChangeEvent, value())) {
dispatchChangeEvent();
setTextAsOfLastFormControlChangeEvent(value());
}

Powered by Google App Engine
This is Rietveld 408576698