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

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

Issue 2794273002: Remove the argument of InputType::didSetValueByUserEdit(). (Closed)
Patch Set: Created 3 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
« no previous file with comments | « third_party/WebKit/Source/core/html/forms/TextFieldInputType.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp b/third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp
index 8de50a5a91b531a3bdfb464306e843808a6bf67d..ac6b7c989636ddca8db2a9b4d04f66aab3288110 100644
--- a/third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp
@@ -499,9 +499,7 @@ String TextFieldInputType::convertFromVisibleValue(
}
void TextFieldInputType::subtreeHasChanged() {
- bool wasChanged = element().wasChangedSinceLastFormControlChangeEvent();
element().setChangedSinceLastFormControlChangeEvent(true);
-
element().setValueFromRenderer(sanitizeUserInputValue(
convertFromVisibleValue(element().innerEditorValue())));
element().updatePlaceholderVisibility();
@@ -510,11 +508,10 @@ void TextFieldInputType::subtreeHasChanged() {
element().pseudoStateChanged(CSSSelector::PseudoInRange);
element().pseudoStateChanged(CSSSelector::PseudoOutOfRange);
- didSetValueByUserEdit(wasChanged ? ValueChangeStateChanged
- : ValueChangeStateNone);
+ didSetValueByUserEdit();
}
-void TextFieldInputType::didSetValueByUserEdit(ValueChangeState state) {
+void TextFieldInputType::didSetValueByUserEdit() {
if (!element().isFocused())
return;
if (ChromeClient* chromeClient = this->chromeClient())
« no previous file with comments | « third_party/WebKit/Source/core/html/forms/TextFieldInputType.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698