summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/rendering
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/rendering')
-rw-r--r--Source/WebCore/rendering/RenderLayerCompositor.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/WebCore/rendering/RenderLayerCompositor.cpp b/Source/WebCore/rendering/RenderLayerCompositor.cpp
index e757080..4f4f553 100644
--- a/Source/WebCore/rendering/RenderLayerCompositor.cpp
+++ b/Source/WebCore/rendering/RenderLayerCompositor.cpp
@@ -1533,7 +1533,13 @@ bool RenderLayerCompositor::requiresCompositingForPlugin(RenderObject* renderer)
// Don't go into compositing mode if height or width are zero, or size is 1x1.
IntRect contentBox = pluginRenderer->contentBoxRect();
+#if PLATFORM(ANDROID)
+ // allow all plugins including 1x1 to be composited, so that they are drawn,
+ // and acquire an ANativeWindow on the UI thread
+ return contentBox.height() * contentBox.width() > 0;
+#else
return contentBox.height() * contentBox.width() > 1;
+#endif
}
bool RenderLayerCompositor::requiresCompositingForFrame(RenderObject* renderer) const