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

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

Issue 1166043003: Fix reflection mask bounds to include visual overflow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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/ReplicaPainter.cpp
diff --git a/Source/core/paint/ReplicaPainter.cpp b/Source/core/paint/ReplicaPainter.cpp
index 05dcdc1f3f321083bd01270d3f332c7e69552654..a92b6b52678dc185d9d91abe2fa3787658fd923e 100644
--- a/Source/core/paint/ReplicaPainter.cpp
+++ b/Source/core/paint/ReplicaPainter.cpp
@@ -28,8 +28,7 @@ void ReplicaPainter::paint(const PaintInfo& paintInfo, const LayoutPoint& paintO
PaintLayerFlags flags = PaintLayerHaveTransparency | PaintLayerAppliedTransform | PaintLayerUncachedClipRects | PaintLayerPaintingReflection;
DeprecatedPaintLayerPainter(*m_layoutReplica.layer()->parent()).paintLayer(paintInfo.context, paintingInfo, flags);
} else if (paintInfo.phase == PaintPhaseMask) {
- LayoutRect paintRect(adjustedPaintOffset, m_layoutReplica.size());
- LayoutObjectDrawingRecorder drawingRecorder(*paintInfo.context, m_layoutReplica, paintInfo.phase, paintRect);
+ LayoutObjectDrawingRecorder drawingRecorder(*paintInfo.context, m_layoutReplica, paintInfo.phase, m_layoutReplica.visualOverflowRect());
if (!drawingRecorder.canUseCachedDrawing())
m_layoutReplica.paintMask(paintInfo, adjustedPaintOffset);
}
« 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