https://bugs.webkit.org/show_bug.cgi?id=224546
<rdar://problem/76666402>
Reviewed by Antti Koivisto.
Source/WebCore:
This patch fixes the case when a non-overlay scrollbar can't be accomodated in the padding/content box area (e.g <div style="height: 10px; overflow: scroll">...)
In the legacy render tree the non-overlay scrollbar size is already taken into account when calling RenderBox::contentWidth/Height (paddingBoxHeight/Width), so
we just have to check how much space they actully take (currently maximum of 15px).
Test: fast/inline-block/non-overlay-scrollbar-incorrect-padding.html
* layout/integration/LayoutIntegrationLineLayout.cpp:
(WebCore::LayoutIntegration::LineLayout::updateLayoutBoxDimensions):
LayoutTests:
* fast/inline-block/non-overlay-scrollbar-incorrect-padding-expected.txt: Added.
* fast/inline-block/non-overlay-scrollbar-incorrect-padding.html: Added.
Canonical link: https://commits.webkit.org/236629@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@276135 268f45cc-cd09-0410-ab3c-d52691b4dbfc