Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(21)

Issue 1173053003: Remove ScrollableArea::notifyScrollPositionChanged and cleanup scroll animators. (Closed)

Created:
4 years, 10 months ago by bokan
Modified:
4 years, 10 months ago
Reviewers:
pdr., skobes
CC:
blink-reviews, tyoshino+watch_chromium.org, shans, rjwright, darktears, blink-reviews-animation_chromium.org, dshwang, slimming-paint-reviews_chromium.org, gavinp+loader_chromium.org, blink-reviews-paint_chromium.org, Nate Chapin, Eric Willigers
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

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

Patch Set 1 #

Total comments: 4

Patch Set 2 : skobes@ review #

Patch Set 3 : Rebase #

Patch Set 4 : Rebase + remove updateScrollbars from FrameView::setScrollPosition #

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

Messages

Total messages: 26 (11 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1173053003/1
4 years, 10 months ago (2015-06-10 15:08:52 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2015-06-10 17:42:22 UTC) #4
bokan
Here's the last bit of the "mega-patch". ptal.
4 years, 10 months ago (2015-06-10 17:43:23 UTC) #6
skobes
https://codereview.chromium.org/1173053003/diff/1/Source/platform/scroll/ScrollAnimatorNone.cpp File Source/platform/scroll/ScrollAnimatorNone.cpp (left): https://codereview.chromium.org/1173053003/diff/1/Source/platform/scroll/ScrollAnimatorNone.cpp#oldcode438 Source/platform/scroll/ScrollAnimatorNone.cpp:438: stopAnimationTimerIfNeeded(); Why do we not need this line anymore? ...
4 years, 10 months ago (2015-06-10 23:08:25 UTC) #7
bokan
https://codereview.chromium.org/1173053003/diff/1/Source/platform/scroll/ScrollAnimatorNone.cpp File Source/platform/scroll/ScrollAnimatorNone.cpp (left): https://codereview.chromium.org/1173053003/diff/1/Source/platform/scroll/ScrollAnimatorNone.cpp#oldcode438 Source/platform/scroll/ScrollAnimatorNone.cpp:438: stopAnimationTimerIfNeeded(); On 2015/06/10 23:08:25, skobes wrote: > Why do ...
4 years, 10 months ago (2015-06-11 00:02:22 UTC) #8
skobes
lgtm
4 years, 10 months ago (2015-06-11 00:03:46 UTC) #9
bokan
+pdr@ for OWNER
4 years, 10 months ago (2015-06-11 00:06:22 UTC) #11
bokan
ping
4 years, 10 months ago (2015-06-12 20:02:00 UTC) #12
pdr.
On 2015/06/12 at 20:02:00, bokan wrote: > ping LGTM
4 years, 10 months ago (2015-06-17 19:44:54 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1173053003/40001
4 years, 10 months ago (2015-06-17 20:13:46 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/59324)
4 years, 10 months ago (2015-06-17 21:55:20 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1173053003/60001
4 years, 10 months ago (2015-06-19 14:25:51 UTC) #21
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2015-06-19 15:22:59 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1173053003/60001
4 years, 10 months ago (2015-06-19 21:19:40 UTC) #25
commit-bot: I haz the power
4 years, 10 months ago (2015-06-19 21:22:54 UTC) #26
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197500

Powered by Google App Engine
This is Rietveld 408576698