Index: Source/modules/device_orientation/NewDeviceOrientationController.cpp |
diff --git a/Source/modules/device_orientation/NewDeviceOrientationController.cpp b/Source/modules/device_orientation/NewDeviceOrientationController.cpp |
index a89b91dfbc6e72d061bd1ed0b90756e31a58513a..05d5e28c1ec7f2ba9743389f3846425a57bd1667 100644 |
--- a/Source/modules/device_orientation/NewDeviceOrientationController.cpp |
+++ b/Source/modules/device_orientation/NewDeviceOrientationController.cpp |
@@ -89,8 +89,7 @@ void NewDeviceOrientationController::unregisterWithDispatcher() |
bool NewDeviceOrientationController::isNullEvent(Event* event) |
{ |
- ASSERT(event->type() == eventNames().deviceorientationEvent); |
- DeviceOrientationEvent* orientationEvent = static_cast<DeviceOrientationEvent*>(event); |
+ DeviceOrientationEvent* orientationEvent = toDeviceOrientationEvent(event); |
return !orientationEvent->orientation()->canProvideEventData(); |
} |