Index: Source/core/html/forms/InputType.cpp |
diff --git a/Source/core/html/forms/InputType.cpp b/Source/core/html/forms/InputType.cpp |
index 65ba6ea43779d26aa19026c89f694211d05cb3e0..c443f6d202519dd9ee6a8fceb963f5964198c55b 100644 |
--- a/Source/core/html/forms/InputType.cpp |
+++ b/Source/core/html/forms/InputType.cpp |
@@ -993,4 +993,13 @@ Decimal InputType::findStepBase(const Decimal& defaultValue) const |
return stepBase; |
} |
+StepRange InputType::createStepRange(AnyStepHandling anyStepHandling, const Decimal& stepBaseDefault, const Decimal& minimumDefault, const Decimal& maximumDefault, const StepRange::StepDescription& stepDescription) const |
+{ |
+ const Decimal stepBase = findStepBase(stepBaseDefault); |
+ const Decimal minimum = parseToNumber(element().fastGetAttribute(minAttr), minimumDefault); |
+ const Decimal maximum = parseToNumber(element().fastGetAttribute(maxAttr), maximumDefault); |
+ const Decimal step = StepRange::parseStep(anyStepHandling, stepDescription, element().fastGetAttribute(stepAttr)); |
+ return StepRange(stepBase, minimum, maximum, step, stepDescription); |
+} |
+ |
} // namespace WebCore |