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

Unified Diff: third_party/WebKit/Source/core/html/HTMLInputElement.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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/forms/InputType.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/HTMLInputElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
index e5f9407cb414fd201a024017e55605a2231b4afd..30d095c3992bb071d24282013eb7667dbea0056a 100644
--- a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
@@ -1100,13 +1100,8 @@ void HTMLInputElement::setValue(const String& value,
m_inputType->setValue(sanitizedValue, valueChanged, eventBehavior);
m_inputTypeView->didSetValue(sanitizedValue, valueChanged);
- if (valueChanged && eventBehavior == DispatchNoEvent)
- setTextAsOfLastFormControlChangeEvent(this->value());
-
- if (!valueChanged)
- return;
-
- notifyFormStateChanged();
+ if (valueChanged)
+ notifyFormStateChanged();
}
void HTMLInputElement::setNonAttributeValue(const String& sanitizedValue) {
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/forms/InputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698