[LFC][Integration] Fix fast/repaint/simple-line-layout-shrinking-content.html
https://bugs.webkit.org/show_bug.cgi?id=205773
<rdar://problem/58319960>
Reviewed by Antti Koivisto.
Let's add padding and border to the repaint rect (which is not quite right since at this level reapint rect should
be about the content change, but that's what SLL does and it fixes some repaint issues when
the box with padding/border shrinks).
* rendering/RenderBlockFlow.cpp:
(WebCore::RenderBlockFlow::layoutLFCLines):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@254040 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebCore/rendering/RenderBlockFlow.cpp b/Source/WebCore/rendering/RenderBlockFlow.cpp
index 74c40da..1092517 100644
--- a/Source/WebCore/rendering/RenderBlockFlow.cpp
+++ b/Source/WebCore/rendering/RenderBlockFlow.cpp
@@ -3705,14 +3705,13 @@
layoutFormattingContextLineLayout.layout();
auto contentHeight = layoutFormattingContextLineLayout.contentLogicalHeight();
- auto contentTop = borderAndPaddingBefore();
- auto contentBottom = contentTop + contentHeight;
- auto totalHeight = contentBottom + borderAndPaddingAfter();
+ auto contentBoxTop = borderAndPaddingBefore();
+ auto contentBoxBottom = contentBoxTop + contentHeight;
+ auto borderBoxBottom = contentBoxBottom + borderAndPaddingAfter();
- repaintLogicalTop = contentTop;
- repaintLogicalBottom = contentBottom;
-
- setLogicalHeight(totalHeight);
+ repaintLogicalTop = contentBoxTop;
+ repaintLogicalBottom = borderBoxBottom;
+ setLogicalHeight(borderBoxBottom);
}
#endif