| 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 fd4878c626a4a99c4ad0e22ca4d85cd6d60913d0..85353de0b1c83c608417254f876526d01010dc55 100644
|
| --- a/third_party/WebKit/Source/core/paint/ReplacedPainter.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/ReplacedPainter.cpp
|
| @@ -24,10 +24,10 @@ static bool shouldApplyViewportClip(const LayoutReplaced& layoutReplaced)
|
|
|
| void ReplacedPainter::paint(const PaintInfo& paintInfo, const LayoutPoint& paintOffset)
|
| {
|
| - LayoutPoint adjustedPaintOffset = paintOffset + m_layoutReplaced.location();
|
| - if (!shouldPaint(paintInfo, adjustedPaintOffset))
|
| + if (!shouldPaint(paintInfo, paintOffset))
|
| return;
|
|
|
| + LayoutPoint adjustedPaintOffset = paintOffset + m_layoutReplaced.location();
|
| LayoutRect borderRect(adjustedPaintOffset, m_layoutReplaced.size());
|
|
|
| if (m_layoutReplaced.hasBoxDecorationBackground() && (paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPhaseSelection))
|
| @@ -85,12 +85,12 @@ 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)) {
|
| LayoutRect selectionPaintingRect = m_layoutReplaced.localSelectionRect();
|
| selectionPaintingRect.moveBy(adjustedPaintOffset);
|
| IntRect selectionPaintingIntRect = pixelSnappedIntRect(selectionPaintingRect);
|
|
|
| - LayoutObjectDrawingRecorder drawingRecorder(paintInfo.context, m_layoutReplaced, DisplayItem::SelectionTint, selectionPaintingIntRect, adjustedPaintOffset);
|
| + LayoutObjectDrawingRecorder drawingRecorder(paintInfo.context, m_layoutReplaced, DisplayItem::SelectionTint, selectionPaintingIntRect);
|
| paintInfo.context.fillRect(selectionPaintingIntRect, m_layoutReplaced.selectionBackgroundColor());
|
| }
|
| }
|
|
|