Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1142)

Unified Diff: Source/modules/screen_orientation/ScreenOrientationController.cpp

Issue 176763009: Have DOMWindow deal with references instead of pointers when possible (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/mediasource/VideoPlaybackQuality.cpp ('k') | Source/modules/webmidi/MIDIOutput.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()
« no previous file with comments | « Source/modules/mediasource/VideoPlaybackQuality.cpp ('k') | Source/modules/webmidi/MIDIOutput.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698