| Index: Source/core/html/forms/InputType.cpp
|
| diff --git a/Source/core/html/forms/InputType.cpp b/Source/core/html/forms/InputType.cpp
|
| index cefc1f582fb04153386c247a223f2734f65bf3b9..b4acc3bc21255434f81b19689720cd688174c15e 100644
|
| --- a/Source/core/html/forms/InputType.cpp
|
| +++ b/Source/core/html/forms/InputType.cpp
|
| @@ -208,9 +208,9 @@ double InputType::valueAsDate() const
|
| return DateComponents::invalidMilliseconds();
|
| }
|
|
|
| -void InputType::setValueAsDate(double, ExceptionState& es) const
|
| +void InputType::setValueAsDate(double, ExceptionState& exceptionState) const
|
| {
|
| - es.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| + exceptionState.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| }
|
|
|
| double InputType::valueAsDouble() const
|
| @@ -218,14 +218,14 @@ double InputType::valueAsDouble() const
|
| return numeric_limits<double>::quiet_NaN();
|
| }
|
|
|
| -void InputType::setValueAsDouble(double doubleValue, TextFieldEventBehavior eventBehavior, ExceptionState& es) const
|
| +void InputType::setValueAsDouble(double doubleValue, TextFieldEventBehavior eventBehavior, ExceptionState& exceptionState) const
|
| {
|
| - setValueAsDecimal(Decimal::fromDouble(doubleValue), eventBehavior, es);
|
| + setValueAsDecimal(Decimal::fromDouble(doubleValue), eventBehavior, exceptionState);
|
| }
|
|
|
| -void InputType::setValueAsDecimal(const Decimal&, TextFieldEventBehavior, ExceptionState& es) const
|
| +void InputType::setValueAsDecimal(const Decimal&, TextFieldEventBehavior, ExceptionState& exceptionState) const
|
| {
|
| - es.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| + exceptionState.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| }
|
|
|
| bool InputType::supportsValidation() const
|
| @@ -812,28 +812,28 @@ unsigned InputType::width() const
|
| return 0;
|
| }
|
|
|
| -void InputType::applyStep(int count, AnyStepHandling anyStepHandling, TextFieldEventBehavior eventBehavior, ExceptionState& es)
|
| +void InputType::applyStep(int count, AnyStepHandling anyStepHandling, TextFieldEventBehavior eventBehavior, ExceptionState& exceptionState)
|
| {
|
| StepRange stepRange(createStepRange(anyStepHandling));
|
| if (!stepRange.hasStep()) {
|
| - es.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| + exceptionState.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| return;
|
| }
|
|
|
| const Decimal current = parseToNumberOrNaN(element().value());
|
| if (!current.isFinite()) {
|
| - es.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| + exceptionState.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| return;
|
| }
|
| Decimal newValue = current + stepRange.step() * count;
|
| if (!newValue.isFinite()) {
|
| - es.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| + exceptionState.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| return;
|
| }
|
|
|
| const Decimal acceptableErrorValue = stepRange.acceptableError();
|
| if (newValue - stepRange.minimum() < -acceptableErrorValue) {
|
| - es.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| + exceptionState.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| return;
|
| }
|
| if (newValue < stepRange.minimum())
|
| @@ -844,13 +844,13 @@ void InputType::applyStep(int count, AnyStepHandling anyStepHandling, TextFieldE
|
| newValue = stepRange.alignValueForStep(current, newValue);
|
|
|
| if (newValue - stepRange.maximum() > acceptableErrorValue) {
|
| - es.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| + exceptionState.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| return;
|
| }
|
| if (newValue > stepRange.maximum())
|
| newValue = stepRange.maximum();
|
|
|
| - setValueAsDecimal(newValue, eventBehavior, es);
|
| + setValueAsDecimal(newValue, eventBehavior, exceptionState);
|
|
|
| if (AXObjectCache* cache = element().document().existingAXObjectCache())
|
| cache->postNotification(&element(), AXObjectCache::AXValueChanged, true);
|
| @@ -869,13 +869,13 @@ StepRange InputType::createStepRange(AnyStepHandling) const
|
| return StepRange();
|
| }
|
|
|
| -void InputType::stepUp(int n, ExceptionState& es)
|
| +void InputType::stepUp(int n, ExceptionState& exceptionState)
|
| {
|
| if (!isSteppable()) {
|
| - es.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| + exceptionState.throwUninformativeAndGenericDOMException(InvalidStateError);
|
| return;
|
| }
|
| - applyStep(n, RejectAny, DispatchNoEvent, es);
|
| + applyStep(n, RejectAny, DispatchNoEvent, exceptionState);
|
| }
|
|
|
| void InputType::stepUpFromRenderer(int n)
|
|
|