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

Unified Diff: Source/core/html/forms/InputType.h

Issue 83413002: Derive the step base for an input element as (now) specified. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Perform step base derivation via InputType::findStepBase() instead Created 7 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/InputType.h
diff --git a/Source/core/html/forms/InputType.h b/Source/core/html/forms/InputType.h
index 94ddda88791670b97f5b69af1b66fd538a07cb24..ad43aefb353d27517550308796f4a0121744429c 100644
--- a/Source/core/html/forms/InputType.h
+++ b/Source/core/html/forms/InputType.h
@@ -237,6 +237,9 @@ protected:
Decimal parseToNumberOrNaN(const String&) const;
void countUsageIfVisible(UseCounter::Feature) const;
+ // Derive the step base, following the HTML algorithm steps.
+ Decimal findStepBase(const Decimal&) const;
+
private:
// Helper for stepUp()/stepDown(). Adds step value * count to the current value.
void applyStep(int count, AnyStepHandling, TextFieldEventBehavior, ExceptionState&);

Powered by Google App Engine
This is Rietveld 408576698