Index: Source/WebCore/platform/graphics/chromium/RenderSurfaceChromium.cpp |
=================================================================== |
--- Source/WebCore/platform/graphics/chromium/RenderSurfaceChromium.cpp (revision 88498) |
+++ Source/WebCore/platform/graphics/chromium/RenderSurfaceChromium.cpp (working copy) |
@@ -152,8 +152,12 @@ |
if (!m_maskLayer && m_owningLayer->replicaLayer()) |
replicaMaskLayer = m_owningLayer->replicaLayer()->maskLayer(); |
- layerRenderer()->setScissorToRect(m_scissorRect); |
+ if (m_owningLayer->parent() && m_owningLayer->parent()->usesLayerScissor()) |
+ layerRenderer()->setScissorToRect(m_scissorRect); |
+ else |
+ GLC(layerRenderer()->context(), layerRenderer()->context()->disable(GraphicsContext3D::SCISSOR_TEST)); |
+ |
// Reflection draws before the layer. |
if (m_owningLayer->replicaLayer()) |
drawSurface(replicaMaskLayer, m_replicaDrawTransform); |