Index: Source/core/html/forms/TimeInputType.cpp |
diff --git a/Source/core/html/forms/TimeInputType.cpp b/Source/core/html/forms/TimeInputType.cpp |
index c3eccd71267bceb9cd56cc8ed31497cc87f742d3..af145f7076fe0c19d7f8f46e23606e94e3efb3a5 100644 |
--- a/Source/core/html/forms/TimeInputType.cpp |
+++ b/Source/core/html/forms/TimeInputType.cpp |
@@ -95,11 +95,7 @@ StepRange TimeInputType::createStepRange(AnyStepHandling anyStepHandling) const |
{ |
DEFINE_STATIC_LOCAL(const StepRange::StepDescription, stepDescription, (timeDefaultStep, timeDefaultStepBase, timeStepScaleFactor, StepRange::ScaledStepValueShouldBeInteger)); |
- const Decimal stepBase = findStepBase(0); |
- const Decimal minimum = parseToNumber(element().fastGetAttribute(minAttr), Decimal::fromDouble(DateComponents::minimumTime())); |
- const Decimal maximum = parseToNumber(element().fastGetAttribute(maxAttr), Decimal::fromDouble(DateComponents::maximumTime())); |
- const Decimal step = StepRange::parseStep(anyStepHandling, stepDescription, element().fastGetAttribute(stepAttr)); |
- return StepRange(stepBase, minimum, maximum, step, stepDescription); |
+ return InputType::createStepRange(anyStepHandling, 0, Decimal::fromDouble(DateComponents::minimumTime()), Decimal::fromDouble(DateComponents::maximumTime()), stepDescription); |
} |
bool TimeInputType::parseToDateComponentsInternal(const String& string, DateComponents* out) const |