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

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

Issue 612323011: Use fragmented bounding box for hit-test/paint clipping. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Calculate offset from enclosingPaginationLayer instead of compensating Created 6 years, 2 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/core/paint/LayerPainter.cpp
diff --git a/Source/core/paint/LayerPainter.cpp b/Source/core/paint/LayerPainter.cpp
index 2ad20b6aaa322949775ae0e9ef334e068813d557..e84a473e8442641c3d5febf1f50e201db56d5e29 100644
--- a/Source/core/paint/LayerPainter.cpp
+++ b/Source/core/paint/LayerPainter.cpp
@@ -217,7 +217,7 @@ void LayerPainter::paintLayerContents(GraphicsContext* context, const LayerPaint
clipStateSaver.save();
if (!rootRelativeBoundsComputed) {
- rootRelativeBounds = m_renderLayer.physicalBoundingBoxIncludingReflectionAndStackingChildren(paintingInfo.rootLayer, offsetFromRoot);
+ rootRelativeBounds = m_renderLayer.boundingBoxIncludingReflectionAndStackingChildren(paintingInfo.rootLayer, offsetFromRoot);
rootRelativeBoundsComputed = true;
}
@@ -233,7 +233,7 @@ void LayerPainter::paintLayerContents(GraphicsContext* context, const LayerPaint
// case, or if the clip ends up empty.
clipStateSaver.save();
if (!rootRelativeBoundsComputed) {
- rootRelativeBounds = m_renderLayer.physicalBoundingBoxIncludingReflectionAndStackingChildren(paintingInfo.rootLayer, offsetFromRoot);
+ rootRelativeBounds = m_renderLayer.boundingBoxIncludingReflectionAndStackingChildren(paintingInfo.rootLayer, offsetFromRoot);
rootRelativeBoundsComputed = true;
}
@@ -272,7 +272,7 @@ void LayerPainter::paintLayerContents(GraphicsContext* context, const LayerPaint
ASSERT(m_renderLayer.filterInfo());
if (!rootRelativeBoundsComputed)
- rootRelativeBounds = m_renderLayer.physicalBoundingBoxIncludingReflectionAndStackingChildren(paintingInfo.rootLayer, offsetFromRoot);
+ rootRelativeBounds = m_renderLayer.boundingBoxIncludingReflectionAndStackingChildren(paintingInfo.rootLayer, offsetFromRoot);
if (filterPainter.prepareFilterEffect(&m_renderLayer, rootRelativeBounds, paintingInfo.paintDirtyRect)) {

Powered by Google App Engine
This is Rietveld 408576698