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

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

Issue 2743733004: Revert of Reduce copying of local data structures in GeometryMapper and PaintLayerClipper. (Closed)
Patch Set: Created 3 years, 9 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/CompositingInputsUpdater.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositingInputsUpdater.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositingInputsUpdater.cpp
index 53d5dfb1acd5d8d7b2625c133039496d26ee4999..ae0dcc65cc9ceae71c10d3c3b75440b14e1082e9 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositingInputsUpdater.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositingInputsUpdater.cpp
@@ -161,14 +161,14 @@
if (properties.unclippedAbsoluteBoundingBox.isEmpty())
properties.unclippedAbsoluteBoundingBox.setSize(IntSize(1, 1));
- ClipRect clipRect;
- layer->clipper(PaintLayer::DoNotUseGeometryMapper)
- .calculateBackgroundClipRect(
- ClipRectsContext(m_rootLayer, AbsoluteClipRects), clipRect);
- IntRect snappedClipRect = pixelSnappedIntRect(clipRect.rect());
+ IntRect clipRect = pixelSnappedIntRect(
+ layer->clipper(PaintLayer::DoNotUseGeometryMapper)
+ .backgroundClipRect(
+ ClipRectsContext(m_rootLayer, AbsoluteClipRects))
+ .rect());
properties.clippedAbsoluteBoundingBox =
properties.unclippedAbsoluteBoundingBox;
- properties.clippedAbsoluteBoundingBox.intersect(snappedClipRect);
+ properties.clippedAbsoluteBoundingBox.intersect(clipRect);
}
const PaintLayer* parent = layer->parent();

Powered by Google App Engine
This is Rietveld 408576698