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

Unified Diff: Source/core/paint/ReplacedPainter.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
Index: Source/core/paint/ReplacedPainter.cpp
diff --git a/Source/core/paint/ReplacedPainter.cpp b/Source/core/paint/ReplacedPainter.cpp
index 13a7bdde4ca6c8a478ba3cbbb87476cde17fca15..241d087b231a45bc922079488a3f08ae69d20b83 100644
--- a/Source/core/paint/ReplacedPainter.cpp
+++ b/Source/core/paint/ReplacedPainter.cpp
@@ -31,9 +31,7 @@ void ReplacedPainter::paint(const PaintInfo& paintInfo, const LayoutPoint& paint
m_layoutReplaced.paintBoxDecorationBackground(paintInfo, adjustedPaintOffset);
if (paintInfo.phase == PaintPhaseMask) {
- LayoutObjectDrawingRecorder drawingRecorder(*paintInfo.context, m_layoutReplaced, paintInfo.phase, visualOverflowRect);
- if (!drawingRecorder.canUseCachedDrawing())
- m_layoutReplaced.paintMask(paintInfo, adjustedPaintOffset);
+ m_layoutReplaced.paintMask(paintInfo, adjustedPaintOffset);
return;
}

Powered by Google App Engine
This is Rietveld 408576698