Index: Source/core/layout/LayoutVideo.cpp |
diff --git a/Source/core/layout/LayoutVideo.cpp b/Source/core/layout/LayoutVideo.cpp |
index 85d2caa574f58ff732e200d320932b67d8fe021f..0dc2abe3237296e7b7f4171aa333c3f346cd001e 100644 |
--- a/Source/core/layout/LayoutVideo.cpp |
+++ b/Source/core/layout/LayoutVideo.cpp |
@@ -246,11 +246,9 @@ LayoutUnit LayoutVideo::offsetHeight() const |
CompositingReasons LayoutVideo::additionalCompositingReasons() const |
{ |
- if (RuntimeEnabledFeatures::overlayFullscreenVideoEnabled()) { |
- HTMLMediaElement* media = toHTMLMediaElement(node()); |
- if (media->isFullscreen()) |
- return CompositingReasonVideo; |
- } |
+ HTMLMediaElement* element = toHTMLMediaElement(node()); |
+ if (element->isFullscreen() && element->usesOverlayFullscreenVideo()) |
+ return CompositingReasonVideo; |
if (shouldDisplayVideo() && supportsAcceleratedRendering()) |
return CompositingReasonVideo; |