Index: Source/core/html/HTMLMediaElement.cpp |
diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp |
index af7aa5b060a504e93f49a37886540d02375b6298..9f5f1b3a1e6642796a683cba62df41359982f48e 100644 |
--- a/Source/core/html/HTMLMediaElement.cpp |
+++ b/Source/core/html/HTMLMediaElement.cpp |
@@ -3457,7 +3457,7 @@ void HTMLMediaElement::enterFullscreen() |
WTF_LOG(Media, "HTMLMediaElement::enterFullscreen"); |
if (document().settings() && document().settings()->fullScreenEnabled()) |
- FullscreenElementStack::from(&document())->requestFullScreenForElement(this, 0, FullscreenElementStack::ExemptIFrameAllowFullScreenRequirement); |
+ FullscreenElementStack::from(document()).requestFullScreenForElement(this, 0, FullscreenElementStack::ExemptIFrameAllowFullScreenRequirement); |
} |
void HTMLMediaElement::exitFullscreen() |
@@ -3465,7 +3465,7 @@ void HTMLMediaElement::exitFullscreen() |
WTF_LOG(Media, "HTMLMediaElement::exitFullscreen"); |
if (document().settings() && document().settings()->fullScreenEnabled() && isFullscreen()) |
- FullscreenElementStack::from(&document())->webkitCancelFullScreen(); |
+ FullscreenElementStack::from(document()).webkitCancelFullScreen(); |
} |
void HTMLMediaElement::didBecomeFullscreenElement() |