Index: Source/core/html/forms/NumberInputType.cpp |
diff --git a/Source/core/html/forms/NumberInputType.cpp b/Source/core/html/forms/NumberInputType.cpp |
index 2466ec488bb250925ea9d9f9f16ad473730f4a0f..7928cf10e149cc194d5c714ee1b48d757f5bde4b 100644 |
--- a/Source/core/html/forms/NumberInputType.cpp |
+++ b/Source/core/html/forms/NumberInputType.cpp |
@@ -157,13 +157,10 @@ bool NumberInputType::typeMismatch() const |
StepRange NumberInputType::createStepRange(AnyStepHandling anyStepHandling) const |
{ |
DEFINE_STATIC_LOCAL(const StepRange::StepDescription, stepDescription, (numberDefaultStep, numberDefaultStepBase, numberStepScaleFactor)); |
- const Decimal stepBase = findStepBase(numberDefaultStepBase); |
+ |
// FIXME: We should use numeric_limits<double>::max for number input type. |
const Decimal floatMax = Decimal::fromDouble(numeric_limits<float>::max()); |
- const Decimal minimum = parseToNumber(element().fastGetAttribute(minAttr), -floatMax); |
- const Decimal maximum = parseToNumber(element().fastGetAttribute(maxAttr), floatMax); |
- const Decimal step = StepRange::parseStep(anyStepHandling, stepDescription, element().fastGetAttribute(stepAttr)); |
- return StepRange(stepBase, minimum, maximum, step, stepDescription); |
+ return InputType::createStepRange(anyStepHandling, numberDefaultStepBase, -floatMax, floatMax, stepDescription); |
} |
bool NumberInputType::sizeShouldIncludeDecoration(int defaultSize, int& preferredSize) const |