| Index: sky/engine/core/rendering/RenderReplaced.cpp
|
| diff --git a/sky/engine/core/rendering/RenderReplaced.cpp b/sky/engine/core/rendering/RenderReplaced.cpp
|
| index b29c8f92ddd801fa5ffa4458a2dd0e7d7e1675c9..b4c7724a9646babf87d368cc096d66f8020e6e0f 100644
|
| --- a/sky/engine/core/rendering/RenderReplaced.cpp
|
| +++ b/sky/engine/core/rendering/RenderReplaced.cpp
|
| @@ -93,19 +93,19 @@ void RenderReplaced::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
|
|
|
| LayoutPoint adjustedPaintOffset = paintOffset + location();
|
|
|
| - if (hasBoxDecorationBackground() && (paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPhaseSelection))
|
| - paintBoxDecorationBackground(paintInfo, adjustedPaintOffset);
|
| -
|
| if (paintInfo.phase == PaintPhaseMask) {
|
| paintMask(paintInfo, adjustedPaintOffset);
|
| return;
|
| }
|
|
|
| + if (hasBoxDecorationBackground())
|
| + paintBoxDecorationBackground(paintInfo, adjustedPaintOffset);
|
| +
|
| LayoutRect paintRect = LayoutRect(adjustedPaintOffset, size());
|
| if (paintInfo.phase == PaintPhaseForeground && style()->outlineWidth())
|
| paintOutline(paintInfo, paintRect);
|
|
|
| - if (paintInfo.phase != PaintPhaseForeground && paintInfo.phase != PaintPhaseSelection && !canHaveChildren())
|
| + if (paintInfo.phase == PaintPhaseMask && !canHaveChildren())
|
| return;
|
|
|
| bool drawSelectionTint = selectionState() != SelectionNone;
|
|
|