Index: Source/core/rendering/compositing/RenderLayerCompositor.cpp |
diff --git a/Source/core/rendering/compositing/RenderLayerCompositor.cpp b/Source/core/rendering/compositing/RenderLayerCompositor.cpp |
index 7631e23ea09820be19b28f8488a2edb11c1c3c29..2f51e2187c133b40a6f2b37a06e06a82269c48e9 100644 |
--- a/Source/core/rendering/compositing/RenderLayerCompositor.cpp |
+++ b/Source/core/rendering/compositing/RenderLayerCompositor.cpp |
@@ -901,7 +901,7 @@ bool RenderLayerCompositor::requiresScrollCornerLayer() const |
void RenderLayerCompositor::updateOverflowControlsLayers() |
{ |
#if USE(RUBBER_BANDING) |
- if (m_renderView.frame()->isLocalRoot()) { |
+ if (m_renderView.frame()->isLocalRoot() && !m_renderView.document().settings()->rubberBandingOnCompositorThread()) { |
if (!m_layerForOverhangShadow) { |
m_layerForOverhangShadow = GraphicsLayer::create(graphicsLayerFactory(), this); |
OverscrollTheme::theme()->setUpOverhangShadowLayer(m_layerForOverhangShadow.get()); |