Index: Source/core/html/forms/InputType.cpp |
diff --git a/Source/core/html/forms/InputType.cpp b/Source/core/html/forms/InputType.cpp |
index 7f92a4a1b0b5b4a784c560be1f31e981c27e3e87..0b435546b2b7df229b94fa85e38ba3af0ec17112 100644 |
--- a/Source/core/html/forms/InputType.cpp |
+++ b/Source/core/html/forms/InputType.cpp |
@@ -934,7 +934,7 @@ void InputType::stepUpFromRenderer(int n) |
setValueAsDecimal(current, DispatchNoEvent, IGNORE_EXCEPTION); |
} |
if ((sign > 0 && current < stepRange.minimum()) || (sign < 0 && current > stepRange.maximum())) { |
- setValueAsDecimal(sign > 0 ? stepRange.minimum() : stepRange.maximum(), DispatchInputAndChangeEvent, IGNORE_EXCEPTION); |
+ setValueAsDecimal(sign > 0 ? stepRange.minimum() : stepRange.maximum(), DispatchChangeEvent, IGNORE_EXCEPTION); |
} else { |
if (stepMismatch(element().value())) { |
ASSERT(!step.isZero()); |
@@ -952,13 +952,13 @@ void InputType::stepUpFromRenderer(int n) |
if (newValue > stepRange.maximum()) |
newValue = stepRange.maximum(); |
- setValueAsDecimal(newValue, n == 1 || n == -1 ? DispatchInputAndChangeEvent : DispatchNoEvent, IGNORE_EXCEPTION); |
+ setValueAsDecimal(newValue, n == 1 || n == -1 ? DispatchChangeEvent : DispatchNoEvent, IGNORE_EXCEPTION); |
if (n > 1) |
- applyStep(n - 1, AnyIsDefaultStep, DispatchInputAndChangeEvent, IGNORE_EXCEPTION); |
+ applyStep(n - 1, AnyIsDefaultStep, DispatchChangeEvent, IGNORE_EXCEPTION); |
else if (n < -1) |
- applyStep(n + 1, AnyIsDefaultStep, DispatchInputAndChangeEvent, IGNORE_EXCEPTION); |
+ applyStep(n + 1, AnyIsDefaultStep, DispatchChangeEvent, IGNORE_EXCEPTION); |
} else { |
- applyStep(n, AnyIsDefaultStep, DispatchInputAndChangeEvent, IGNORE_EXCEPTION); |
+ applyStep(n, AnyIsDefaultStep, DispatchChangeEvent, IGNORE_EXCEPTION); |
} |
} |
} |