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

Unified Diff: Source/core/paint/DeprecatedPaintLayerClipper.cpp

Issue 1322653002: *** NOT FOR LANDING *** Avoid localToContainerPoint() in DeprecatedPaintLayerClipper::addClipsFromT… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698