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

Unified Diff: Source/core/paint/BlockPainter.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/BlockPainter.cpp
diff --git a/Source/core/paint/BlockPainter.cpp b/Source/core/paint/BlockPainter.cpp
index a21a7870bc69c48a77ec9c8f0dd694e8f0eaada4..8198eb87c0accf58e8ccc02b0b946f9f75cdbf48 100644
--- a/Source/core/paint/BlockPainter.cpp
+++ b/Source/core/paint/BlockPainter.cpp
@@ -160,7 +160,7 @@ void BlockPainter::paintAsInlineBlock(LayoutObject& layoutObject, const PaintInf
void BlockPainter::paintObject(const PaintInfo& paintInfo, const LayoutPoint& paintOffset)
{
- PaintPhase paintPhase = paintInfo.phase;
+ const PaintPhase paintPhase = paintInfo.phase;
LayoutRect bounds;
if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
@@ -174,9 +174,7 @@ void BlockPainter::paintObject(const PaintInfo& paintInfo, const LayoutPoint& pa
m_layoutBlock.paintBoxDecorationBackground(paintInfo, paintOffset);
if (paintPhase == PaintPhaseMask && m_layoutBlock.style()->visibility() == VISIBLE) {
- LayoutObjectDrawingRecorder recorder(*paintInfo.context, m_layoutBlock, paintPhase, bounds);
- if (!recorder.canUseCachedDrawing())
- m_layoutBlock.paintMask(paintInfo, paintOffset);
+ m_layoutBlock.paintMask(paintInfo, paintOffset);
return;
}

Powered by Google App Engine
This is Rietveld 408576698