diff options
Diffstat (limited to 'Source/WebCore/html/StepRange.cpp')
-rw-r--r-- | Source/WebCore/html/StepRange.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/WebCore/html/StepRange.cpp b/Source/WebCore/html/StepRange.cpp index 68b0ebd37..7948020d0 100644 --- a/Source/WebCore/html/StepRange.cpp +++ b/Source/WebCore/html/StepRange.cpp @@ -35,10 +35,10 @@ using namespace HTMLNames; StepRange::StepRange(const HTMLInputElement* element) { - if (element->hasAttribute(precisionAttr)) { - step = 1.0; + step = 1; + if (element->hasAttribute(precisionAttr)) hasStep = !equalIgnoringCase(element->getAttribute(precisionAttr), "float"); - } else + else hasStep = element->getAllowedValueStep(&step); maximum = element->maximum(); |