Index: Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp |
diff --git a/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp b/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp |
index 5b253cf26221863bc0509d551f4b8e6832be5028..0b1d8952a2f29596773e5b3f4ee2615c23ab5a35 100644 |
--- a/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp |
+++ b/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp |
@@ -759,9 +759,9 @@ void CompositedDeprecatedPaintLayerMapping::updateMainGraphicsLayerGeometry(cons |
// descendants. So, the visibility flag for m_graphicsLayer should be true if there are any |
// non-compositing visible layers. |
bool contentsVisible = m_owningLayer.hasVisibleContent() || hasVisibleNonCompositingDescendant(&m_owningLayer); |
- if (RuntimeEnabledFeatures::overlayFullscreenVideoEnabled() && layoutObject()->isVideo()) { |
+ if (layoutObject()->isVideo()) { |
HTMLVideoElement* videoElement = toHTMLVideoElement(layoutObject()->node()); |
- if (videoElement->isFullscreen() && !HTMLMediaElement::isMediaStreamURL(videoElement->sourceURL().string())) |
+ if (videoElement->isFullscreen() && videoElement->usesOverlayFullscreenVideo()) |
contentsVisible = false; |
} |
m_graphicsLayer->setContentsVisible(contentsVisible); |