Index: Source/modules/device_orientation/NewDeviceOrientationController.cpp |
diff --git a/Source/modules/device_orientation/NewDeviceOrientationController.cpp b/Source/modules/device_orientation/NewDeviceOrientationController.cpp |
index a9eb064c81c0424dbe8317db5df995a8f70ffacb..28d2b2690ff208eb0c6d04317e01525524d83726 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() == EventTypeNames::deviceorientation); |
- DeviceOrientationEvent* orientationEvent = static_cast<DeviceOrientationEvent*>(event); |
+ DeviceOrientationEvent* orientationEvent = toDeviceOrientationEvent(event); |
return !orientationEvent->orientation()->canProvideEventData(); |
} |