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

Unified Diff: Source/core/html/shadow/MediaControls.cpp

Issue 23819007: Have Node::document() return a reference instead of a pointer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 4 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/core/html/shadow/MediaControlElements.cpp ('k') | Source/core/html/shadow/MediaControlsChromium.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « Source/core/html/shadow/MediaControlElements.cpp ('k') | Source/core/html/shadow/MediaControlsChromium.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698