Index: Source/core/html/shadow/SpinButtonElement.cpp |
diff --git a/Source/core/html/shadow/SpinButtonElement.cpp b/Source/core/html/shadow/SpinButtonElement.cpp |
index f9797563a6e979a42812420b8bf83aeb0d4856af..6a11613731bbd9517999bd9a4843f609e37f90ba 100644 |
--- a/Source/core/html/shadow/SpinButtonElement.cpp |
+++ b/Source/core/html/shadow/SpinButtonElement.cpp |
@@ -157,7 +157,7 @@ void SpinButtonElement::forwardEvent(Event* event) |
if (!m_spinButtonOwner->shouldSpinButtonRespondToWheelEvents()) |
return; |
- doStepAction(static_cast<WheelEvent*>(event)->wheelDeltaY()); |
+ doStepAction(toWheelEvent(event)->wheelDeltaY()); |
event->setDefaultHandled(); |
} |