|
|
Remove ScrollableArea::notifyScrollPositionChanged and cleanup scroll animators.
Removed external uses of notifyScrollPositionChanged. It was previously meant to
be used when the scroll position of a ScrollableArea changed externally, e.g.
scrolls coming from the compositor. However, since it was public, it was used
all over the place for all sorts of reasons.
This patch removes the method altogether in favor of the externally visible
setScrollPosition method and uses the protected scrollPositionChanged method
directly from the scroll animators and internal users.
Also cleaned up the interfaces ScrollAnimator and ProgrammaticScrollAnimator
have/use to make them more symmetric. This included making all programmatic
scrolls go through the ProgrammaticScrollAnimator and user scrolls through
ScrollAnimator. This allowed us to make the ScrollType implicit in the scroll
animators. Truncation to integer scroll offsets was also moved from the
animators to ScrollableArea since it never made much sense where it was.
BUG=
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197500
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+86 lines, -99 lines) |
Patch |
 |
M |
Source/core/frame/FrameView.h
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/core/frame/FrameView.cpp
|
View
|
1
2
3
|
2 chunks |
+1 line, -9 lines |
0 comments
|
Download
|
 |
M |
Source/core/frame/RootFrameViewportTest.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/loader/FrameLoader.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/page/Page.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
Source/platform/mac/ScrollAnimatorMac.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/platform/mac/ScrollAnimatorMac.mm
|
View
|
|
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
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/platform/scroll/ScrollAnimator.cpp
|
View
|
|
2 chunks |
+5 lines, -8 lines |
0 comments
|
Download
|
 |
M |
Source/platform/scroll/ScrollAnimatorNone.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/platform/scroll/ScrollAnimatorNone.cpp
|
View
|
1
|
2 chunks |
+11 lines, -12 lines |
0 comments
|
Download
|
 |
M |
Source/platform/scroll/ScrollableArea.h
|
View
|
|
3 chunks |
+5 lines, -9 lines |
0 comments
|
Download
|
 |
M |
Source/platform/scroll/ScrollableArea.cpp
|
View
|
|
6 chunks |
+26 lines, -29 lines |
0 comments
|
Download
|
 |
M |
Source/platform/scroll/ScrollableAreaTest.cpp
|
View
|
1
2
|
3 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/web/WebLocalFrameImpl.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/web/WebViewImpl.cpp
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/web/tests/PinchViewportTest.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/web/tests/ScrollAnimatorNoneTest.cpp
|
View
|
1
2
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
Total messages: 26 (11 generated)
|