Index: Source/modules/device_orientation/DeviceMotionController.cpp |
diff --git a/Source/modules/device_orientation/DeviceMotionController.cpp b/Source/modules/device_orientation/DeviceMotionController.cpp |
index 63950a50f71b0ff49b368f54d48f6a6545c181c7..d8f2511cc2b6e70dd7cb9f16ebab86ce927187fe 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() == EventTypeNames::devicemotion); |
- DeviceMotionEvent* motionEvent = static_cast<DeviceMotionEvent*>(event); |
+ DeviceMotionEvent* motionEvent = toDeviceMotionEvent(event); |
return !motionEvent->deviceMotionData()->canProvideEventData(); |
} |