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

Unified Diff: third_party/WebKit/Source/core/html/forms/InputType.cpp

Issue 2480133003: INPUT element: Move setTextAsOfLastFormControlChangeEvent() call in setValue(). (Closed)
Patch Set: Created 4 years, 1 month 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: third_party/WebKit/Source/core/html/forms/InputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/InputType.cpp b/third_party/WebKit/Source/core/html/forms/InputType.cpp
index 583b28b0d43318fd3ea83687a20eae9fe45495d9..c45096bc85a1331301fe062e2fc86771d323de3e 100644
--- a/third_party/WebKit/Source/core/html/forms/InputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/InputType.cpp
@@ -526,6 +526,7 @@ void InputType::setValue(const String& sanitizedValue,
element().dispatchFormControlChangeEvent();
break;
case DispatchNoEvent:
+ element().setTextAsOfLastFormControlChangeEvent(element().value());
break;
}
}

Powered by Google App Engine
This is Rietveld 408576698