Index: third_party/WebKit/Source/core/paint/ReplacedPainter.cpp |
diff --git a/third_party/WebKit/Source/core/paint/ReplacedPainter.cpp b/third_party/WebKit/Source/core/paint/ReplacedPainter.cpp |
index 922f5bd7af976e068f240d3c72989882c9ab99b3..7e187de5af4e4d026f771b9d2cd3c41473ad3f2d 100644 |
--- a/third_party/WebKit/Source/core/paint/ReplacedPainter.cpp |
+++ b/third_party/WebKit/Source/core/paint/ReplacedPainter.cpp |
@@ -90,13 +90,13 @@ void ReplacedPainter::paint(const PaintInfo& paintInfo, const LayoutPoint& paint |
// The selection tint never gets clipped by border-radius rounding, since we want it to run right up to the edges of |
// surrounding content. |
bool drawSelectionTint = paintInfo.phase == PaintPhaseForeground && m_layoutReplaced.selectionState() != SelectionNone && !paintInfo.isPrinting(); |
- if (drawSelectionTint && !LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*paintInfo.context, m_layoutReplaced, DisplayItem::SelectionTint, adjustedPaintOffset)) { |
+ if (drawSelectionTint && !LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(paintInfo.context, m_layoutReplaced, DisplayItem::SelectionTint, adjustedPaintOffset)) { |
LayoutRect selectionPaintingRect = m_layoutReplaced.localSelectionRect(); |
selectionPaintingRect.moveBy(adjustedPaintOffset); |
IntRect selectionPaintingIntRect = pixelSnappedIntRect(selectionPaintingRect); |
- LayoutObjectDrawingRecorder drawingRecorder(*paintInfo.context, m_layoutReplaced, DisplayItem::SelectionTint, selectionPaintingIntRect, adjustedPaintOffset); |
- paintInfo.context->fillRect(selectionPaintingIntRect, m_layoutReplaced.selectionBackgroundColor()); |
+ LayoutObjectDrawingRecorder drawingRecorder(paintInfo.context, m_layoutReplaced, DisplayItem::SelectionTint, selectionPaintingIntRect, adjustedPaintOffset); |
+ paintInfo.context.fillRect(selectionPaintingIntRect, m_layoutReplaced.selectionBackgroundColor()); |
} |
} |