|
|
Cleanup ScrollableArea scrolling API
This CL attempts to consolidate the various scroll methods in ScrollableArea
and associated classes into a more rational set. A summary of the changes:
-Consolidated most scrolling to happen through setScrollPosition
-Added an enum ScrollType since the behavior of a scroll varies slightly based
on whether the scroll is initiated programmatically, by the user, or comes
from a compositor update.
-Renamed scroll to userScroll to make it more clear that this method is for
scroll gestures originating from user generated events.
-Call updateCompositorScrollAnimations on RootFrameViewport since the new
control flow causes us to use RootFrameViewport's scroll animators in the
programmatic case.
-Removed unused methods in ScrollAnimatorMac
-Route instant programmatic scrolls through ProgrammaticScrollAnimator rather
than ScrollAnimator. In general, made the two classes more symmetric w.r.t
each other. e.g updating ScrollableArea now takes same path through
notifyPositionChanged -> ScrollableArea::scrollPositionChanged for both
classes.
-Moved scroll position truncation to happen in scrollPositionChanged rather
than ScrollAnimators.
BUG=
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+93 lines, -98 lines) |
Patch |
 |
M |
Source/core/frame/FrameView.h
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/core/frame/FrameView.cpp
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/frame/RootFrameViewportTest.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/loader/FrameLoader.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/page/Page.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
Source/platform/mac/ScrollAnimatorMac.h
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/platform/mac/ScrollAnimatorMac.mm
|
View
|
1
2
3
4
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
Source/platform/scroll/ProgrammaticScrollAnimator.h
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/platform/scroll/ProgrammaticScrollAnimator.cpp
|
View
|
|
5 chunks |
+16 lines, -5 lines |
0 comments
|
Download
|
 |
M |
Source/platform/scroll/ScrollAnimator.h
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/platform/scroll/ScrollAnimator.cpp
|
View
|
1
2
3
4
|
2 chunks |
+5 lines, -8 lines |
0 comments
|
Download
|
 |
M |
Source/platform/scroll/ScrollAnimatorNone.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/platform/scroll/ScrollAnimatorNone.cpp
|
View
|
1
2
3
4
|
2 chunks |
+11 lines, -12 lines |
0 comments
|
Download
|
 |
M |
Source/platform/scroll/ScrollTypes.h
|
View
|
1
2
3
4
|
2 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
Source/platform/scroll/ScrollableArea.h
|
View
|
1
2
3
4
|
3 chunks |
+5 lines, -9 lines |
0 comments
|
Download
|
 |
M |
Source/platform/scroll/ScrollableArea.cpp
|
View
|
1
2
3
4
|
6 chunks |
+26 lines, -29 lines |
0 comments
|
Download
|
 |
M |
Source/platform/scroll/ScrollableAreaTest.cpp
|
View
|
1
2
3
4
|
3 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/web/WebLocalFrameImpl.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/web/WebViewImpl.cpp
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/web/tests/PinchViewportTest.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/web/tests/ScrollAnimatorNoneTest.cpp
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
Total messages: 13 (9 generated)
|