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

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

Issue 2390563002: Reflow comments in core/html/forms/. (Closed)
Patch Set: Created 4 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
Index: third_party/WebKit/Source/core/html/forms/StepRange.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/StepRange.cpp b/third_party/WebKit/Source/core/html/forms/StepRange.cpp
index 91b47542fc65325aa21e64664e83a717e68c77dc..7bb6d6f2c60a0017d4e0578e073d403424428437 100644
--- a/third_party/WebKit/Source/core/html/forms/StepRange.cpp
+++ b/third_party/WebKit/Source/core/html/forms/StepRange.cpp
@@ -67,7 +67,8 @@ StepRange::StepRange(const Decimal& stepBase,
}
Decimal StepRange::acceptableError() const {
- // FIXME: We should use DBL_MANT_DIG instead of FLT_MANT_DIG regarding to HTML5 specification.
+ // FIXME: We should use DBL_MANT_DIG instead of FLT_MANT_DIG regarding to
+ // HTML5 specification.
DEFINE_STATIC_LOCAL(const Decimal, twoPowerOfFloatMantissaBits,
(Decimal::Positive, 0, UINT64_C(1) << FLT_MANT_DIG));
return m_stepDescription.stepValueShouldBe == StepValueShouldBeReal
@@ -127,7 +128,8 @@ Decimal StepRange::parseStep(AnyStepHandling anyStepHandling,
step *= stepDescription.stepScaleFactor;
break;
case ParsedStepValueShouldBeInteger:
- // For date, month, and week, the parsed value should be an integer for some types.
+ // For date, month, and week, the parsed value should be an integer for
+ // some types.
step = std::max(step.round(), Decimal(1));
step *= stepDescription.stepScaleFactor;
break;

Powered by Google App Engine
This is Rietveld 408576698