Index: Source/core/html/shadow/SpinButtonElement.cpp |
diff --git a/Source/core/html/shadow/SpinButtonElement.cpp b/Source/core/html/shadow/SpinButtonElement.cpp |
index fbf9ef6136b2e6739683e792658fb54d05e4956b..0b30118793c52b0a4b32bc1540e4db820710180d 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(); |
} |