Scroll size is not recalculated when absolute left of child is updated
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Mar 2014 05:54:11 +0000 (05:54 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Mar 2014 05:54:11 +0000 (05:54 +0000)
commit7cd6e7cbad73fe90bcd988ddb4edc3ac805165ab
tree1e688b2ba8bf45b618a5893c8b0b71716d16f0ae
parentdc20626f27c476cb38b7d9f66bfab2c71f000a35
Scroll size is not recalculated when absolute left of child is updated
https://bugs.webkit.org/show_bug.cgi?id=123958

Patch by Manish R Gurnaney <m.gurnaney@samsung.com> on 2014-03-13
Reviewed by Simon Fraser.

Source/WebCore:

Test: fast/css/display-inline-block-scrollbar.html
Actual issue was that whenever there is the content change in the
RenderBlock having inline-block children, The InlineFlowBox while
computing overflow never resets previous value.

* rendering/InlineFlowBox.cpp:
(WebCore::InlineFlowBox::computeOverflow):
Added code to clear overflow when we start computing overflow for
InlineFlowBox. So as to ScrollSize can be recalculated properly.

LayoutTests:

* fast/css/display-inline-block-scrollbar-expected.txt: Added.
* fast/css/display-inline-block-scrollbar.html: Added.
Added test case to check that scroll size is recalculated when absolute
left of child is updated.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@165602 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/css/display-inline-block-scrollbar-expected.txt [new file with mode: 0755]
LayoutTests/fast/css/display-inline-block-scrollbar.html [new file with mode: 0755]
Source/WebCore/ChangeLog
Source/WebCore/rendering/InlineFlowBox.cpp