Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Issue 1842623003: Correctly reset ScrollAnimator animation state after cancelling animation (Closed)

Created:
4 years, 8 months ago by ymalik
Modified:
4 years, 8 months ago
Reviewers:
ajuma, jbroman
CC:
darktears, blink-reviews, blink-reviews-animation_chromium.org, chromium-reviews, Eric Willigers, kinuko+watch, rjwright, shans, skobes
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Correctly reset ScrollAnimator animation state after cancelling animation We were calling willAnimaterToOffset with the updated target position before clearing the animation state when in PostAnimationCleanup. As a result, we didn't take into account the potentially modified scroll offset by a programmatic scroll. BUG=598548 Committed: https://crrev.com/d7b5be44530835f2b1f3c3cfc8d6d7ea18a50553 Cr-Commit-Position: refs/heads/master@{#383854}

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -0 lines) Patch
M third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp View 1 2 chunks +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollAnimatorTest.cpp View 1 chunk +63 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (6 generated)
ymalik
4 years, 8 months ago (2016-03-29 18:01:10 UTC) #3
ajuma
https://codereview.chromium.org/1842623003/diff/1/third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp File third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp (right): https://codereview.chromium.org/1842623003/diff/1/third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp#newcode116 third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp:116: resetAnimationState(); What happens to the actual cleanup (specifically, the ...
4 years, 8 months ago (2016-03-29 18:41:57 UTC) #4
ymalik
https://codereview.chromium.org/1842623003/diff/1/third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp File third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp (right): https://codereview.chromium.org/1842623003/diff/1/third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp#newcode116 third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp:116: resetAnimationState(); On 2016/03/29 18:41:57, ajuma wrote: > What happens ...
4 years, 8 months ago (2016-03-29 19:42:17 UTC) #5
ajuma
Thanks, lgtm.
4 years, 8 months ago (2016-03-29 20:22:29 UTC) #6
ymalik
+Jeremy for Source/platform
4 years, 8 months ago (2016-03-29 20:23:35 UTC) #8
jbroman
rs lgtm
4 years, 8 months ago (2016-03-29 20:28:02 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1842623003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1842623003/20001
4 years, 8 months ago (2016-03-29 20:40:58 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-03-29 23:03:03 UTC) #13
commit-bot: I haz the power
4 years, 8 months ago (2016-03-29 23:04:23 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/d7b5be44530835f2b1f3c3cfc8d6d7ea18a50553
Cr-Commit-Position: refs/heads/master@{#383854}

Powered by Google App Engine
This is Rietveld 408576698