Index: Source/modules/device_orientation/DeviceMotionController.cpp |
diff --git a/Source/modules/device_orientation/DeviceMotionController.cpp b/Source/modules/device_orientation/DeviceMotionController.cpp |
index 5f6fd4202ef4199296e79b002814090d46358ac0..189c17b710155c93c1238546a026959ee412594f 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().devicemotionEvent); |
- DeviceMotionEvent* motionEvent = static_cast<DeviceMotionEvent*>(event); |
+ DeviceMotionEvent* motionEvent = toDeviceMotionEvent(event); |
return !motionEvent->deviceMotionData()->canProvideEventData(); |
} |