| Index: Source/core/rendering/RenderBlock.cpp
|
| diff --git a/Source/core/rendering/RenderBlock.cpp b/Source/core/rendering/RenderBlock.cpp
|
| index 92ef57b1ee851d04adedf0d906ba19a80274d3cd..205b84ea8ce89bf708be4362f635e8daad54a845 100644
|
| --- a/Source/core/rendering/RenderBlock.cpp
|
| +++ b/Source/core/rendering/RenderBlock.cpp
|
| @@ -1747,7 +1747,7 @@ void RenderBlock::computeOverflow(LayoutUnit oldClientAfterEdge, bool recomputeF
|
| // When we have overflow clip, propagate the original spillout since it will include collapsed bottom margins
|
| // and bottom padding. Set the axis we don't care about to be 1, since we want this overflow to always
|
| // be considered reachable.
|
| - LayoutRect clientRect(clientBoxRect());
|
| + LayoutRect clientRect(noOverflowRect());
|
| LayoutRect rectToApply;
|
| if (isHorizontalWritingMode())
|
| rectToApply = LayoutRect(clientRect.x(), clientRect.y(), 1, max<LayoutUnit>(0, oldClientAfterEdge - clientRect.y()));
|
| @@ -1761,7 +1761,7 @@ void RenderBlock::computeOverflow(LayoutUnit oldClientAfterEdge, bool recomputeF
|
| // Allow our overflow to catch cases where the caret in an empty editable element with negative text indent needs to get painted.
|
| LayoutUnit textIndent = textIndentOffset();
|
| if (textIndent < 0) {
|
| - LayoutRect clientRect(clientBoxRect());
|
| + LayoutRect clientRect(noOverflowRect());
|
| LayoutRect rectToApply = LayoutRect(clientRect.x() + min<LayoutUnit>(0, textIndent), clientRect.y(), clientRect.width() - min<LayoutUnit>(0, textIndent), clientRect.height());
|
| addVisualOverflow(rectToApply);
|
| }
|
|
|