REGRESSION (r194448): Scrolling overflow:scroll goes too far
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 2 Jan 2016 04:44:16 +0000 (04:44 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 2 Jan 2016 04:44:16 +0000 (04:44 +0000)
commit320ff920ea6a02706b082977bd0d7b2d2a171788
tree24ca468b6c8c9948b24c33e253297f36bb9ee021
parentc8715bd60986660b41a9d6b770d325dce4b14686
REGRESSION (r194448): Scrolling overflow:scroll goes too far
https://bugs.webkit.org/show_bug.cgi?id=152645

Reviewed by Zalan Bujtas.

Source/WebCore:

Fix a bug introduced in r194448: use the scrollPosition, not the scrollOrigin
to compute the overhang amount.

Test: fast/scrolling/overflow-scroll-past-max.html

* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::overhangAmount):

LayoutTests:

Test that scrolls and overflow div with wheel events, then checks that it has
not passed the max scroll offset.

* fast/scrolling/overflow-scroll-past-max-expected.txt: Added.
* fast/scrolling/overflow-scroll-past-max.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@194486 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/scrolling/overflow-scroll-past-max-expected.txt [new file with mode: 0644]
LayoutTests/fast/scrolling/overflow-scroll-past-max.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderLayer.cpp