More ScrollAnimatorMac cleanup
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Dec 2011 22:42:47 +0000 (22:42 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Dec 2011 22:42:47 +0000 (22:42 +0000)
commiteac1f196dc7d21ef0b6f3b6a5749b25ba4dff9d7
treead7663cca173ffe0a2e9b952d141009ad4bcb137
parent9e5f36ea151edfc932cf5e8d645a93df06e076b1
More ScrollAnimatorMac cleanup
https://bugs.webkit.org/show_bug.cgi?id=75127

Reviewed by Andreas Kling.

Introduce a immediateScrollByWithoutContentEdgeConstraints and use it whenever we want to scroll by an
offset instead of doing the setConstrainsScrollingToContentEdge dance.

* platform/mac/ScrollAnimatorMac.h:
* platform/mac/ScrollAnimatorMac.mm:
(WebCore::ScrollAnimatorMac::immediateScrollByWithoutContentEdgeConstraints):
(WebCore::ScrollAnimatorMac::smoothScrollWithEvent):
(WebCore::ScrollAnimatorMac::snapRubberBandTimerFired):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@103582 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/mac/ScrollAnimatorMac.h
Source/WebCore/platform/mac/ScrollAnimatorMac.mm