Index: Source/core/html/shadow/MediaControls.cpp |
diff --git a/Source/core/html/shadow/MediaControls.cpp b/Source/core/html/shadow/MediaControls.cpp |
index 8fc410aac3a55b46e92967b4d2da4481c8fad2b1..483ca942f6f58b5e8ee974bbbe6810aa52a9854b 100644 |
--- a/Source/core/html/shadow/MediaControls.cpp |
+++ b/Source/core/html/shadow/MediaControls.cpp |
@@ -79,7 +79,7 @@ void MediaControls::setMediaController(MediaControllerInterface* controller) |
void MediaControls::reset() |
{ |
- Page* page = document()->page(); |
+ Page* page = document().page(); |
if (!page) |
return; |
@@ -121,7 +121,7 @@ void MediaControls::reset() |
void MediaControls::reportedError() |
{ |
- Page* page = document()->page(); |
+ Page* page = document().page(); |
if (!page) |
return; |
@@ -319,7 +319,7 @@ void MediaControls::startHideFullscreenControlsTimer() |
if (!m_isFullscreen) |
return; |
- Page* page = document()->page(); |
+ Page* page = document().page(); |
if (!page) |
return; |
@@ -352,7 +352,7 @@ void MediaControls::createTextTrackDisplay() |
if (m_textDisplayContainer) |
return; |
- RefPtr<MediaControlTextTrackContainerElement> textDisplayContainer = MediaControlTextTrackContainerElement::create(document()); |
+ RefPtr<MediaControlTextTrackContainerElement> textDisplayContainer = MediaControlTextTrackContainerElement::create(&document()); |
m_textDisplayContainer = textDisplayContainer.get(); |
if (m_mediaController) |