| Index: Source/core/html/forms/NumberInputType.cpp
|
| diff --git a/Source/core/html/forms/NumberInputType.cpp b/Source/core/html/forms/NumberInputType.cpp
|
| index 3033421fdf4c5fb92883f48355bcc7af81971bd6..244d047e30f5bdc19051c3360caf07fa4e8e40ba 100644
|
| --- a/Source/core/html/forms/NumberInputType.cpp
|
| +++ b/Source/core/html/forms/NumberInputType.cpp
|
| @@ -121,31 +121,31 @@ double NumberInputType::valueAsDouble() const
|
| return parseToDoubleForNumberType(element().value());
|
| }
|
|
|
| -void NumberInputType::setValueAsDouble(double newValue, TextFieldEventBehavior eventBehavior, ExceptionState& es) const
|
| +void NumberInputType::setValueAsDouble(double newValue, TextFieldEventBehavior eventBehavior, ExceptionState& exceptionState) const
|
| {
|
| // FIXME: We should use numeric_limits<double>::max for number input type.
|
| const double floatMax = numeric_limits<float>::max();
|
| if (newValue < -floatMax) {
|
| - es.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| + exceptionState.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| return;
|
| }
|
| if (newValue > floatMax) {
|
| - es.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| + exceptionState.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| return;
|
| }
|
| element().setValue(serializeForNumberType(newValue), eventBehavior);
|
| }
|
|
|
| -void NumberInputType::setValueAsDecimal(const Decimal& newValue, TextFieldEventBehavior eventBehavior, ExceptionState& es) const
|
| +void NumberInputType::setValueAsDecimal(const Decimal& newValue, TextFieldEventBehavior eventBehavior, ExceptionState& exceptionState) const
|
| {
|
| // FIXME: We should use numeric_limits<double>::max for number input type.
|
| const Decimal floatMax = Decimal::fromDouble(numeric_limits<float>::max());
|
| if (newValue < -floatMax) {
|
| - es.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| + exceptionState.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| return;
|
| }
|
| if (newValue > floatMax) {
|
| - es.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| + exceptionState.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| return;
|
| }
|
| element().setValue(serializeForNumberType(newValue), eventBehavior);
|
|
|