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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp

Issue 2671853003: [SPInvalidation] Use GeometryMapper in PaintLayerClipper for paint. (Closed)
Patch Set: none Created 3 years, 10 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: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
index bf203b4571dceb89135ecc6d412ddf2f908d6194..92ffde1844015144b859beaa63b8285e65b9830e 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
@@ -546,7 +546,7 @@ void CompositedLayerMapping::
IgnoreOverlayScrollbarSize);
clipRectsContext.setIgnoreOverflowClip();
LayoutRect unsnappedParentClipRect =
- m_owningLayer.clipper().backgroundClipRect(clipRectsContext).rect();
+ m_owningLayer.clipper(false).backgroundClipRect(clipRectsContext).rect();
IntRect parentClipRect = pixelSnappedIntRect(unsnappedParentClipRect);
owningLayerIsClipped = parentClipRect != LayoutRect::infiniteIntRect();
@@ -1136,7 +1136,7 @@ void CompositedLayerMapping::updateAncestorClippingLayerGeometry(
PaintingClipRectsIgnoringOverflowClip,
IgnoreOverlayScrollbarSize);
IntRect parentClipRect = pixelSnappedIntRect(
- m_owningLayer.clipper().backgroundClipRect(clipRectsContext).rect());
+ m_owningLayer.clipper(false).backgroundClipRect(clipRectsContext).rect());
ASSERT(parentClipRect != LayoutRect::infiniteIntRect());
m_ancestorClippingLayer->setPosition(
FloatPoint(parentClipRect.location() - graphicsLayerParentLocation));
@@ -2857,7 +2857,7 @@ IntRect CompositedLayerMapping::localClipRectForSquashedLayer(
ClipRectsContext clipRectsContext(ancestorPaintInfo->paintLayer,
UncachedClipRects);
IntRect parentClipRect =
- pixelSnappedIntRect(paintInfo.paintLayer->clipper()
+ pixelSnappedIntRect(paintInfo.paintLayer->clipper(false)
.backgroundClipRect(clipRectsContext)
.rect());
ASSERT(parentClipRect != LayoutRect::infiniteIntRect());

Powered by Google App Engine
This is Rietveld 408576698