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

Unified Diff: Source/core/html/forms/RangeInputType.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/forms/RangeInputType.h
diff --git a/Source/core/html/forms/RangeInputType.h b/Source/core/html/forms/RangeInputType.h
index a79476c9b76b4d6ea5aca642bc5e6b5c780f11a3..d88bd917eb6794ccdf9e6d9790dfd0e6bb32a6d9 100644
--- a/Source/core/html/forms/RangeInputType.h
+++ b/Source/core/html/forms/RangeInputType.h
@@ -62,7 +62,7 @@ private:
virtual String serialize(const Decimal&) const override;
virtual void accessKeyAction(bool sendMouseEvents) override;
virtual void sanitizeValueInResponseToMinOrMaxAttributeChange() override;
- virtual void setValue(const String&, bool valueChanged, TextFieldEventBehavior) override;
+ virtual void setValue(const String&, bool valueChanged, bool isReset, TextFieldEventBehavior) override;
virtual String fallbackValue() const override;
virtual String sanitizeValue(const String& proposedValue) const override;
virtual bool shouldRespectListAttribute() override;

Powered by Google App Engine
This is Rietveld 408576698