Index: Source/core/rendering/compositing/RenderLayerCompositor.cpp |
diff --git a/Source/core/rendering/compositing/RenderLayerCompositor.cpp b/Source/core/rendering/compositing/RenderLayerCompositor.cpp |
index 1ec3750969ebc2b8613ca5c6ebce60d59bc70495..ba9ca588e812197992c0ff0af3e73e2ed6e3f1aa 100644 |
--- a/Source/core/rendering/compositing/RenderLayerCompositor.cpp |
+++ b/Source/core/rendering/compositing/RenderLayerCompositor.cpp |
@@ -321,7 +321,7 @@ static RenderVideo* findFullscreenVideoRenderer(Document& document) |
return 0; |
fullscreenElement = FullscreenElementStack::fullscreenElementFrom(*contentDocument); |
} |
- if (!fullscreenElement || !fullscreenElement->hasTagName(videoTag)) |
+ if (!isHTMLVideoElement(fullscreenElement)) |
return 0; |
RenderObject* renderer = fullscreenElement->renderer(); |
if (!renderer) |