| Index: sky/engine/core/rendering/RenderReplaced.cpp
|
| diff --git a/sky/engine/core/rendering/RenderReplaced.cpp b/sky/engine/core/rendering/RenderReplaced.cpp
|
| index b4c7724a9646babf87d368cc096d66f8020e6e0f..05ac4941bcd58cc57060c1c82d0f06807329f7b5 100644
|
| --- a/sky/engine/core/rendering/RenderReplaced.cpp
|
| +++ b/sky/engine/core/rendering/RenderReplaced.cpp
|
| @@ -108,13 +108,6 @@ void RenderReplaced::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
|
| if (paintInfo.phase == PaintPhaseMask && !canHaveChildren())
|
| return;
|
|
|
| - bool drawSelectionTint = selectionState() != SelectionNone;
|
| - if (paintInfo.phase == PaintPhaseSelection) {
|
| - if (selectionState() == SelectionNone)
|
| - return;
|
| - drawSelectionTint = false;
|
| - }
|
| -
|
| bool completelyClippedOut = false;
|
| if (style()->hasBorderRadius()) {
|
| LayoutRect borderRect = LayoutRect(adjustedPaintOffset, size());
|
| @@ -138,7 +131,7 @@ void RenderReplaced::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
|
|
|
| // 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) {
|
| + if (selectionState() != SelectionNone) {
|
| LayoutRect selectionPaintingRect = localSelectionRect();
|
| selectionPaintingRect.moveBy(adjustedPaintOffset);
|
| paintInfo.context->fillRect(pixelSnappedIntRect(selectionPaintingRect), selectionBackgroundColor());
|
|
|