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

Unified Diff: third_party/WebKit/Source/core/html/forms/StepRange.h

Issue 2048943002: Fix an assertion failure in InputType::applyStep() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
Index: third_party/WebKit/Source/core/html/forms/StepRange.h
diff --git a/third_party/WebKit/Source/core/html/forms/StepRange.h b/third_party/WebKit/Source/core/html/forms/StepRange.h
index 0111651a90e969f464e05afb6a5766bf5eb95088..2a43cdf0e4f709018a76fbd1a34a55fe2cda58bb 100644
--- a/third_party/WebKit/Source/core/html/forms/StepRange.h
+++ b/third_party/WebKit/Source/core/html/forms/StepRange.h
@@ -84,6 +84,9 @@ public:
Decimal step() const { return m_step; }
Decimal stepBase() const { return m_stepBase; }
bool stepMismatch(const Decimal&) const;
+ // Returns the maximum step-matched value between minimum() and
+ // maximum(). If there's no such value, this returns Decimal::nan().
+ Decimal stepSnappedMaximum() const;
// Clamp the middle value according to the step
Decimal defaultValue() const
« no previous file with comments | « third_party/WebKit/Source/core/html/forms/InputType.cpp ('k') | third_party/WebKit/Source/core/html/forms/StepRange.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698