Index: Source/core/paint/DeprecatedPaintLayerClipper.cpp |
diff --git a/Source/core/paint/DeprecatedPaintLayerClipper.cpp b/Source/core/paint/DeprecatedPaintLayerClipper.cpp |
index 3b2be6a93e110d5f8d69da2d76b899776b772312..ccf6a1a36cc2230f7184d63848ea246735ae2dc9 100644 |
--- a/Source/core/paint/DeprecatedPaintLayerClipper.cpp |
+++ b/Source/core/paint/DeprecatedPaintLayerClipper.cpp |
@@ -276,10 +276,15 @@ void DeprecatedPaintLayerClipper::addClipsFromThisObject(const ClipRectsContext& |
{ |
LayoutView* view = m_layoutObject.view(); |
ASSERT(view); |
+#if 1 |
+ LayoutPoint offset; |
+ m_layoutObject.layer()->convertToLayerCoords(context.rootLayer, offset); |
+#else |
// This offset cannot use convertToLayerCoords, because sometimes our rootLayer may be across |
// some transformed layer boundary, for example, in the DeprecatedPaintLayerCompositor overlapMap, where |
// clipRects are needed in view space. |
- LayoutPoint offset = roundedLayoutPoint(m_layoutObject.localToContainerPoint(FloatPoint(), context.rootLayer->layoutObject())); |
+ LayoutPoint offset = roundedLayoutPoint(m_layoutObject.localToContainerPoint(FloatPoint(), context.rootLayer->layoutObject())); // |
+#endif |
if (clipRects.fixed() && context.rootLayer->layoutObject() == view) |
offset -= toIntSize(view->frameView()->scrollPosition()); |