Index: Source/core/html/forms/TextFieldInputType.cpp |
diff --git a/Source/core/html/forms/TextFieldInputType.cpp b/Source/core/html/forms/TextFieldInputType.cpp |
index 807f2623d1cd28b3bfbb431cd43d1060fbc4538a..6f1365e6f7da4aaa865031947d1e77c57b118b0b 100644 |
--- a/Source/core/html/forms/TextFieldInputType.cpp |
+++ b/Source/core/html/forms/TextFieldInputType.cpp |
@@ -222,6 +222,7 @@ void TextFieldInputType::handleKeydownEventForSpinButton(KeyboardEvent* event) |
spinButtonStepDown(); |
else |
return; |
+ element().dispatchFormControlChangeEvent(); |
event->setDefaultHandled(); |
} |
@@ -575,4 +576,9 @@ bool TextFieldInputType::shouldSpinButtonRespondToWheelEvents() |
return shouldSpinButtonRespondToMouseEvents() && element().focused(); |
} |
+void TextFieldInputType::spinButtonDidReleaseMouseCapture() |
+{ |
+ element().dispatchFormControlChangeEvent(); |
+} |
+ |
} // namespace WebCore |