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

Issue 2791513002: Reset is_ticking_ when calling AnimationPlayer::RemoveFromTicking (Closed)

Created:
3 years, 8 months ago by bokan
Modified:
3 years, 8 months ago
CC:
cc-bugs_chromium.org, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Reset is_ticking_ when calling AnimationPlayer::RemoveFromTicking it_ticking_ isn't cleared in this path. This means that future animations wont be started since UpdateTickingState will think that its already ticking and wont add itself to the AnimationHost's ticking players list. I believe the omission in https://crrev.com/e7592f02242026970af0a6425928e5271a52f79d was that when the scrolling Element is unregistered the ElementAnimations will be removed from AnimationHost. In contrast, the AnimationPlayer lives on. That's why ElementAnimations didn't need to clear the active/ticking flag but AnimationHost does. BUG=704410 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2791513002 Cr-Commit-Position: refs/heads/master@{#460966} Committed: https://chromium.googlesource.com/chromium/src/+/a064840eb26683687c53dc6fa6b5c29a2c418b5c

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M cc/animation/animation_player.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 20 (11 generated)
alancutter (OOO until 2018)
rs lgtm
3 years, 8 months ago (2017-03-31 00:17:15 UTC) #8
bokan
aelias@: I narrowed it down to this. I think this may be safer compared to ...
3 years, 8 months ago (2017-03-31 00:19:54 UTC) #10
aelias_OOO_until_Jul13
Seems legit at first glance. But if this is now targeted for 58 not 57, ...
3 years, 8 months ago (2017-03-31 00:24:41 UTC) #11
bokan
No, we need a fix in M57 - though TPMs have decided to ship a ...
3 years, 8 months ago (2017-03-31 00:28:18 UTC) #12
aelias_OOO_until_Jul13
OK. It looks like this boolean is not used for anything else than activation signals ...
3 years, 8 months ago (2017-03-31 00:34:21 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2791513002/1
3 years, 8 months ago (2017-03-31 00:37:21 UTC) #15
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/a064840eb26683687c53dc6fa6b5c29a2c418b5c
3 years, 8 months ago (2017-03-31 01:02:35 UTC) #18
danakj
Drive-by request for followup unit test :) On Thu, Mar 30, 2017 at 8:34 PM, ...
3 years, 8 months ago (2017-03-31 14:50:36 UTC) #19
bokan
3 years, 8 months ago (2017-03-31 14:52:01 UTC) #20
Message was sent while issue was closed.
On 2017/03/31 14:50:36, danakj wrote:
> Drive-by request for followup unit test :)

Yup, we needed to get this into last night's canary cut so we had some urgency.
As noted in the bug, I'll wait for ajuma@ to get back and verify this is the
correct fix and I'll add a test then.

Powered by Google App Engine
This is Rietveld 408576698