Index: Source/modules/screen_orientation/ScreenOrientationController.cpp |
diff --git a/Source/modules/screen_orientation/ScreenOrientationController.cpp b/Source/modules/screen_orientation/ScreenOrientationController.cpp |
index c3f9974088792d15d72323d61227ca46cf994e01..e18f68a29ba3bab4980a09de40b7ecc0e288b589 100644 |
--- a/Source/modules/screen_orientation/ScreenOrientationController.cpp |
+++ b/Source/modules/screen_orientation/ScreenOrientationController.cpp |
@@ -38,10 +38,10 @@ ScreenOrientationController::ScreenOrientationController(Document& document) |
void ScreenOrientationController::dispatchOrientationChangeEvent() |
{ |
- if (m_document.domWindow() && m_document.domWindow()->screen() |
+ if (m_document.domWindow() |
&& !m_document.activeDOMObjectsAreSuspended() |
&& !m_document.activeDOMObjectsAreStopped()) |
- m_document.domWindow()->screen()->dispatchEvent(Event::create(EventTypeNames::orientationchange)); |
+ m_document.domWindow()->screen().dispatchEvent(Event::create(EventTypeNames::orientationchange)); |
} |
const char* ScreenOrientationController::supplementName() |