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

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

Issue 673583002: Remove wtf_ceil. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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 | « no previous file | Source/platform/Decimal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/forms/InputType.cpp
diff --git a/Source/core/html/forms/InputType.cpp b/Source/core/html/forms/InputType.cpp
index 1da08da15942c3c79ef7482c2af50cf136b5cd88..21306effa358c2729e90dc3466061b4ccba64a27 100644
--- a/Source/core/html/forms/InputType.cpp
+++ b/Source/core/html/forms/InputType.cpp
@@ -760,7 +760,7 @@ void InputType::applyStep(const Decimal& current, int count, AnyStepHandling any
if (count < 0)
newValue = base + ((current - base) / step).floor() * step;
else if (count > 0)
- newValue = base + ((current - base) / step).ceiling() * step;
+ newValue = base + ((current - base) / step).ceil() * step;
else
newValue = current;
« no previous file with comments | « no previous file | Source/platform/Decimal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698