Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Unified Diff: Source/WebCore/platform/graphics/chromium/RenderSurfaceChromium.cpp

Issue 7046081: Merge 88496 - 2011-06-09 James Robinson <jamesr@chromium.org> (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/782/
Patch Set: Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698