Index: Source/core/html/HTMLMediaElement.cpp |
diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp |
index 7a0f542984a115d6410af0e774966a8cb963861d..ed7fd50741474d5212673a25bfe0d8af583b0a76 100644 |
--- a/Source/core/html/HTMLMediaElement.cpp |
+++ b/Source/core/html/HTMLMediaElement.cpp |
@@ -66,7 +66,9 @@ |
#include "core/platform/NotImplemented.h" |
#include "core/platform/graphics/InbandTextTrackPrivate.h" |
#include "core/platform/graphics/MediaPlayer.h" |
+#include "core/rendering/RenderLayerCompositor.h" |
#include "core/rendering/RenderVideo.h" |
+#include "core/rendering/RenderView.h" |
#include "modules/mediastream/MediaStreamRegistry.h" |
#include "public/platform/Platform.h" |
#include "weborigin/SecurityOrigin.h" |
@@ -3570,12 +3572,16 @@ void HTMLMediaElement::didBecomeFullscreenElement() |
{ |
if (hasMediaControls()) |
mediaControls()->enteredFullscreen(); |
+ if (RuntimeEnabledFeatures::overlayFullscreenVideoEnabled() && isVideo()) |
+ document().renderView()->compositor()->setCompositingLayersNeedRebuild(true); |
} |
void HTMLMediaElement::willStopBeingFullscreenElement() |
{ |
if (hasMediaControls()) |
mediaControls()->exitedFullscreen(); |
+ if (RuntimeEnabledFeatures::overlayFullscreenVideoEnabled() && isVideo()) |
+ document().renderView()->compositor()->setCompositingLayersNeedRebuild(true); |
} |
WebKit::WebLayer* HTMLMediaElement::platformLayer() const |