| Index: Source/core/rendering/RenderReplaced.cpp
|
| diff --git a/Source/core/rendering/RenderReplaced.cpp b/Source/core/rendering/RenderReplaced.cpp
|
| index 54e489b275008e23eda28e4fd6fb8e760c6b539e..93db7ed2d3e54c4cebd894321c8c13bad8d20a4a 100644
|
| --- a/Source/core/rendering/RenderReplaced.cpp
|
| +++ b/Source/core/rendering/RenderReplaced.cpp
|
| @@ -158,13 +158,13 @@ void RenderReplaced::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
|
| if (style()->hasBorderRadius())
|
| paintInfo.context->restore();
|
| }
|
| -
|
| +
|
| // The selection tint never gets clipped by border-radius rounding, since we want it to run right up to the edges of
|
| // surrounding content.
|
| if (drawSelectionTint) {
|
| LayoutRect selectionPaintingRect = localSelectionRect();
|
| selectionPaintingRect.moveBy(adjustedPaintOffset);
|
| - paintInfo.context->fillRect(pixelSnappedIntRect(selectionPaintingRect), selectionBackgroundColor(), style()->colorSpace());
|
| + paintInfo.context->fillRect(pixelSnappedIntRect(selectionPaintingRect), selectionBackgroundColor());
|
| }
|
| }
|
|
|
| @@ -176,7 +176,7 @@ bool RenderReplaced::shouldPaint(PaintInfo& paintInfo, const LayoutPoint& paintO
|
|
|
| if (!paintInfo.shouldPaintWithinRoot(this))
|
| return false;
|
| -
|
| +
|
| // if we're invisible or haven't received a layout yet, then just bail.
|
| if (style()->visibility() != VISIBLE)
|
| return false;
|
| @@ -192,7 +192,7 @@ bool RenderReplaced::shouldPaint(PaintInfo& paintInfo, const LayoutPoint& paintO
|
| top = min(selTop, top);
|
| bottom = max(selBottom, bottom);
|
| }
|
| -
|
| +
|
| LayoutRect localRepaintRect = paintInfo.rect;
|
| localRepaintRect.inflate(maximalOutlineSize(paintInfo.phase));
|
| if (adjustedPaintOffset.x() + visualOverflowRect().x() >= localRepaintRect.maxX() || adjustedPaintOffset.x() + visualOverflowRect().maxX() <= localRepaintRect.x())
|
|
|