Index: Source/core/rendering/compositing/GraphicsLayerUpdater.cpp |
diff --git a/Source/core/rendering/compositing/GraphicsLayerUpdater.cpp b/Source/core/rendering/compositing/GraphicsLayerUpdater.cpp |
index 40c419947199076cd33c2a73106ab36d3df34799..882b60974288f3eae94be1fd35a6cce65520bd3b 100644 |
--- a/Source/core/rendering/compositing/GraphicsLayerUpdater.cpp |
+++ b/Source/core/rendering/compositing/GraphicsLayerUpdater.cpp |
@@ -27,6 +27,7 @@ |
#include "config.h" |
#include "core/rendering/compositing/GraphicsLayerUpdater.h" |
+#include "core/html/HTMLMediaElement.h" |
#include "core/rendering/RenderLayer.h" |
#include "core/rendering/RenderLayerReflectionInfo.h" |
#include "core/rendering/RenderPart.h" |
@@ -123,6 +124,16 @@ void GraphicsLayerUpdater::rebuildTree(RenderLayer& layer, Vector<GraphicsLayer* |
} |
childLayersOfEnclosingLayer.append(currentCompositedLayerMapping->childForSuperlayers()); |
+ bool appendLayer = true; |
+ if (RuntimeEnabledFeatures::overlayFullscreenVideoEnabled()) { |
+ Node* node = layer.renderer()->node(); |
+ if (isHTMLMediaElement(*node) && toHTMLMediaElement(node)->isFullscreen()) { |
+ appendLayer = false; |
+ } |
+ } |
+ if (appendLayer) { |
esprehn
2014/03/05 00:22:41
This should be refactored into a function.
if (sh
qinmin
2014/03/05 01:34:42
Done.
|
+ childLayersOfEnclosingLayer.append(currentCompositedLayerMapping->childForSuperlayers()); |
+ } |
} |
if (!depth) { |