Index: Source/core/html/forms/RangeInputType.cpp |
diff --git a/Source/core/html/forms/RangeInputType.cpp b/Source/core/html/forms/RangeInputType.cpp |
index c2358d33763651eea7ebeaab0e2ed06f05d1a545..55066fcc48871707f8d234f19cac199c48c9d8ab 100644 |
--- a/Source/core/html/forms/RangeInputType.cpp |
+++ b/Source/core/html/forms/RangeInputType.cpp |
@@ -105,9 +105,9 @@ double RangeInputType::valueAsDouble() const |
return parseToDoubleForNumberType(element().value()); |
} |
-void RangeInputType::setValueAsDecimal(const Decimal& newValue, TextFieldEventBehavior eventBehavior, ExceptionState&) const |
+void RangeInputType::setValueAsDouble(double newValue, TextFieldEventBehavior eventBehavior, ExceptionState& exceptionState) const |
{ |
- element().setValue(serialize(newValue), eventBehavior); |
+ setValueAsDecimal(Decimal::fromDouble(newValue), eventBehavior, exceptionState); |
} |
bool RangeInputType::typeMismatchFor(const String& value) const |