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

Unified Diff: Source/core/html/HTMLInputElement.h

Issue 679273004: Set element value to its default value on reset (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added isReset as a parameter to not allow setValue change value of m_textAsOfLastFormControlChangeE… Created 6 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: Source/core/html/HTMLInputElement.h
diff --git a/Source/core/html/HTMLInputElement.h b/Source/core/html/HTMLInputElement.h
index 5fccef09af19c9d5bfd346d4373ea7bb0b392cc5..b3d2c19387a5928adc51ec10916234cd461e1ef3 100644
--- a/Source/core/html/HTMLInputElement.h
+++ b/Source/core/html/HTMLInputElement.h
@@ -108,7 +108,7 @@ public:
virtual String value() const override;
void setValue(const String&, ExceptionState&, TextFieldEventBehavior = DispatchNoEvent);
- void setValue(const String&, TextFieldEventBehavior = DispatchNoEvent);
+ void setValue(const String&, TextFieldEventBehavior = DispatchNoEvent, bool isReset = false);
tkent 2014/11/06 00:11:16 Please do not add new bool argument to a public fu
Habib Virji 2014/11/06 14:23:08 Acknowledged.
void setValueForUser(const String&);
// Checks if the specified string would be a valid value.
// We should not call this for types with no string value such as CHECKBOX and RADIO.

Powered by Google App Engine
This is Rietveld 408576698