| Index: sky/engine/core/rendering/RenderReplaced.cpp
|
| diff --git a/sky/engine/core/rendering/RenderReplaced.cpp b/sky/engine/core/rendering/RenderReplaced.cpp
|
| index 3431bc133a5c70ff3b58db1345be083f52691027..c87cb33af0ccfbaca5f57f772dc154cf9890c4c6 100644
|
| --- a/sky/engine/core/rendering/RenderReplaced.cpp
|
| +++ b/sky/engine/core/rendering/RenderReplaced.cpp
|
| @@ -479,11 +479,6 @@ void RenderReplaced::setSelectionState(SelectionState state)
|
| if (!inlineBoxWrapper())
|
| return;
|
|
|
| - // We only include the space below the baseline in our layer's cached paint invalidation rect if the
|
| - // image is selected. Since the selection state has changed update the rect.
|
| - if (hasLayer())
|
| - setPreviousPaintInvalidationRect(boundsRectForPaintInvalidation(containerForPaintInvalidation()));
|
| -
|
| if (canUpdateSelectionOnRootLineBoxes())
|
| inlineBoxWrapper()->root().setHasSelectedChildren(isSelected());
|
| }
|
| @@ -511,13 +506,4 @@ bool RenderReplaced::isSelected() const
|
| return false;
|
| }
|
|
|
| -LayoutRect RenderReplaced::clippedOverflowRectForPaintInvalidation(const RenderLayerModelObject* paintInvalidationContainer, const PaintInvalidationState* paintInvalidationState) const
|
| -{
|
| - // The selectionRect can project outside of the overflowRect, so take their union
|
| - // for paint invalidation to avoid selection painting glitches.
|
| - LayoutRect r = isSelected() ? localSelectionRect() : visualOverflowRect();
|
| - mapRectToPaintInvalidationBacking(paintInvalidationContainer, r, paintInvalidationState);
|
| - return r;
|
| -}
|
| -
|
| }
|
|
|