Index: Source/modules/device_orientation/DeviceMotionController.cpp |
diff --git a/Source/modules/device_orientation/DeviceMotionController.cpp b/Source/modules/device_orientation/DeviceMotionController.cpp |
index 1d99ea30cdbd430fd321d0d6ef12ae133ea2b4f6..3ad87f59cd3bec1fed5e56db31ee605275f148fd 100644 |
--- a/Source/modules/device_orientation/DeviceMotionController.cpp |
+++ b/Source/modules/device_orientation/DeviceMotionController.cpp |
@@ -91,8 +91,7 @@ void DeviceMotionController::unregisterWithDispatcher() |
bool DeviceMotionController::isNullEvent(Event* event) |
{ |
- ASSERT(event->type() == EventNames::devicemotion); |
- DeviceMotionEvent* motionEvent = static_cast<DeviceMotionEvent*>(event); |
+ DeviceMotionEvent* motionEvent = toDeviceMotionEvent(event); |
return !motionEvent->deviceMotionData()->canProvideEventData(); |
} |