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

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

Issue 1197843004: Allocate a drawing recorder locally to BoxPainter code in the mask phase. (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
« Source/core/paint/BoxPainter.cpp ('K') | « Source/core/paint/ReplacedPainter.cpp ('k') | 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 a92b6b52678dc185d9d91abe2fa3787658fd923e..d3fdc8fccb56ed66d1c8f46ba73c4a74da8d91b4 100644
--- a/Source/core/paint/ReplicaPainter.cpp
+++ b/Source/core/paint/ReplicaPainter.cpp
@@ -28,9 +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) {
- LayoutObjectDrawingRecorder drawingRecorder(*paintInfo.context, m_layoutReplica, paintInfo.phase, m_layoutReplica.visualOverflowRect());
- if (!drawingRecorder.canUseCachedDrawing())
- m_layoutReplica.paintMask(paintInfo, adjustedPaintOffset);
+ m_layoutReplica.paintMask(paintInfo, adjustedPaintOffset);
}
}
« Source/core/paint/BoxPainter.cpp ('K') | « Source/core/paint/ReplacedPainter.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698