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

Unified Diff: Source/core/html/shadow/MediaControlElements.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/HTMLShadowElement.cpp ('k') | Source/core/html/shadow/MediaControls.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/shadow/MediaControlElements.cpp
diff --git a/Source/core/html/shadow/MediaControlElements.cpp b/Source/core/html/shadow/MediaControlElements.cpp
index 02e252aca5c6930ece678b3a082d4de04d254013..a68690e155872121487f6b769a8931be17c8bf12 100644
--- a/Source/core/html/shadow/MediaControlElements.cpp
+++ b/Source/core/html/shadow/MediaControlElements.cpp
@@ -90,7 +90,7 @@ void MediaControlPanelElement::startDrag(const LayoutPoint& eventLocation)
if (!renderer || !renderer->isBox())
return;
- Frame* frame = document()->frame();
+ Frame* frame = document().frame();
if (!frame)
return;
@@ -119,7 +119,7 @@ void MediaControlPanelElement::endDrag()
m_isBeingDragged = false;
- Frame* frame = document()->frame();
+ Frame* frame = document().frame();
if (!frame)
return;
@@ -580,11 +580,11 @@ void MediaControlFullscreenButtonElement::defaultEventHandler(Event* event)
// allows apps which embed a WebView to retain the existing full screen
// video implementation without requiring them to implement their own full
// screen behavior.
- if (document()->settings() && document()->settings()->fullScreenEnabled()) {
+ if (document().settings() && document().settings()->fullScreenEnabled()) {
if (FullscreenElementStack::isActiveFullScreenElement(toParentMediaElement(this)))
- FullscreenElementStack::from(document())->webkitCancelFullScreen();
+ FullscreenElementStack::from(&document())->webkitCancelFullScreen();
else
- FullscreenElementStack::from(document())->requestFullScreenForElement(toParentMediaElement(this), 0, FullscreenElementStack::ExemptIFrameAllowFullScreenRequirement);
+ FullscreenElementStack::from(&document())->requestFullScreenForElement(toParentMediaElement(this), 0, FullscreenElementStack::ExemptIFrameAllowFullScreenRequirement);
} else
mediaController()->enterFullscreen();
event->setDefaultHandled();
@@ -781,7 +781,7 @@ void MediaControlTextTrackContainerElement::updateSizes(bool forceUpdate)
if (!mediaElement)
return;
- if (!document()->page())
+ if (!document().page())
return;
IntRect videoBox;
« no previous file with comments | « Source/core/html/shadow/HTMLShadowElement.cpp ('k') | Source/core/html/shadow/MediaControls.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698