Index: Source/web/FullscreenController.cpp |
diff --git a/Source/web/FullscreenController.cpp b/Source/web/FullscreenController.cpp |
index 44a6b33be6f5178601947040ac3f79372139e78b..fdb4262617b76ec5417dfcc128468bbdc8949ec7 100644 |
--- a/Source/web/FullscreenController.cpp |
+++ b/Source/web/FullscreenController.cpp |
@@ -163,8 +163,8 @@ void FullscreenController::enterFullScreenForElement(WebCore::Element* element) |
// FIXME: There is no embedder-side handling in layout test mode. |
&& !isRunningLayoutTest()) { |
HTMLMediaElement* mediaElement = toHTMLMediaElement(element); |
- if (mediaElement->player() && mediaElement->player()->canShowFullscreenOverlay()) { |
- mediaElement->player()->showFullscreenOverlay(); |
+ if (mediaElement->webMediaPlayer() && mediaElement->webMediaPlayer()->canEnterFullscreen()) { |
+ mediaElement->webMediaPlayer()->enterFullscreen(); |
m_provisionalFullScreenElement = element; |
return; |
} |
@@ -187,8 +187,8 @@ void FullscreenController::exitFullScreenForElement(WebCore::Element* element) |
// FIXME: There is no embedder-side handling in layout test mode. |
&& !isRunningLayoutTest()) { |
HTMLMediaElement* mediaElement = toHTMLMediaElement(element); |
- if (mediaElement->player()) |
- mediaElement->player()->hideFullscreenOverlay(); |
+ if (mediaElement->webMediaPlayer()) |
+ mediaElement->webMediaPlayer()->exitFullscreen(); |
return; |
} |
if (WebViewClient* client = m_webViewImpl->client()) |