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

Unified Diff: Source/web/FullscreenController.cpp

Issue 1254613003: Let the WebMediaPlayer decide whether to use overlay video. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address Xianzhu's Comments Created 5 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/platform/RuntimeEnabledFeatures.in ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/FullscreenController.cpp
diff --git a/Source/web/FullscreenController.cpp b/Source/web/FullscreenController.cpp
index 750d0b09d531f57a5ee086e14ee0d02bf8a65fa4..232af889b0ca1d1176b8e008ea8cc5aa4be3f7f6 100644
--- a/Source/web/FullscreenController.cpp
+++ b/Source/web/FullscreenController.cpp
@@ -85,11 +85,9 @@ void FullscreenController::didEnterFullScreen()
Fullscreen::from(document).didEnterFullScreenForElement(element.get());
ASSERT(Fullscreen::currentFullScreenElementFrom(document) == element);
- if (RuntimeEnabledFeatures::overlayFullscreenVideoEnabled()) {
- if (isHTMLVideoElement(element)) {
- HTMLVideoElement* videoElement = toHTMLVideoElement(element);
- if (HTMLMediaElement::isMediaStreamURL(videoElement->sourceURL().string()))
- return;
+ if (isHTMLVideoElement(element)) {
+ HTMLVideoElement* videoElement = toHTMLVideoElement(element);
+ if (videoElement->usesOverlayFullscreenVideo()) {
if (videoElement->webMediaPlayer()
// FIXME: There is no embedder-side handling in layout test mode.
&& !LayoutTestSupport::isRunningLayoutTest()) {
« no previous file with comments | « Source/platform/RuntimeEnabledFeatures.in ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698