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

Unified Diff: Source/core/html/shadow/MediaControlsChromium.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
Index: Source/core/html/shadow/MediaControlsChromium.cpp
diff --git a/Source/core/html/shadow/MediaControlsChromium.cpp b/Source/core/html/shadow/MediaControlsChromium.cpp
index a14e7f36db08fd17491bc939ceb28907abd3bde0..380b8a693d61abda50436abc700220b108353edb 100644
--- a/Source/core/html/shadow/MediaControlsChromium.cpp
+++ b/Source/core/html/shadow/MediaControlsChromium.cpp
@@ -151,7 +151,7 @@ void MediaControlsChromium::setMediaController(MediaControllerInterface* control
void MediaControlsChromium::reset()
{
- Page* page = document()->page();
+ Page* page = document().page();
if (!page)
return;
@@ -175,7 +175,7 @@ void MediaControlsChromium::updateCurrentTimeDisplay()
double now = m_mediaController->currentTime();
double duration = m_mediaController->duration();
- Page* page = document()->page();
+ Page* page = document().page();
if (!page)
return;
@@ -205,7 +205,7 @@ void MediaControlsChromium::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/MediaControls.cpp ('k') | Source/core/html/shadow/PasswordGeneratorButtonElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698