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

Issue 2527623002: add has_element_in_any_list check in ElementAnimations::UpdateActivation (Closed)

Created:
4 years, 1 month ago by junchao.han
Modified:
4 years ago
CC:
chromium-reviews, cc-bugs_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

add has_element_in_any_list check in ElementAnimations::UpdateActivation add has_element_in_any_list check in ElementAnimations::UpdateActivation during PushProperities process. This solves a corner case if dom for animation be removed before animation starts. See bug for details. BUG=668086 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Committed: https://crrev.com/7e190bb23bc08d98e305c4e2b367acf932a2d800 Cr-Commit-Position: refs/heads/master@{#434862}

Patch Set 1 #

Patch Set 2 : Deactivate ElementAnimations from AnimationHost if no element in any list #

Total comments: 6

Patch Set 3 : move has_element_in_any_list check to ::UpdateActivation #

Total comments: 2

Patch Set 4 : update check condition #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -1 line) Patch
M cc/animation/element_animations.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M cc/animation/element_animations_unittest.cc View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
M cc/test/animation_timelines_test_common.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/animation_timelines_test_common.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (12 generated)
junchao.han
On 2016/11/23 11:09:29, junchao.han wrote: > mailto:junchao.han@intel.com changed reviewers: > + mailto:ajuma@chromium.org, mailto:loyso@chromium.org, mailto:vollick@chromium.org PTAL
4 years ago (2016-11-24 01:34:37 UTC) #4
loyso (OOO)
unit test, please?
4 years ago (2016-11-24 03:24:38 UTC) #5
junchao.han
On 2016/11/24 03:24:38, loyso wrote: > unit test, please? sure. I will add a unit ...
4 years ago (2016-11-24 07:53:19 UTC) #6
junchao.han
On 2016/11/24 07:53:19, junchao.han wrote: > On 2016/11/24 03:24:38, loyso wrote: > > unit test, ...
4 years ago (2016-11-26 12:34:21 UTC) #7
loyso (OOO)
Nice bug! Thanks for working on this! https://codereview.chromium.org/2527623002/diff/20001/cc/animation/element_animations.cc File cc/animation/element_animations.cc (right): https://codereview.chromium.org/2527623002/diff/20001/cc/animation/element_animations.cc#newcode163 cc/animation/element_animations.cc:163: animation_host_->DidDeactivateElementAnimations(this); if ...
4 years ago (2016-11-27 23:36:55 UTC) #8
loyso (OOO)
https://codereview.chromium.org/2527623002/diff/20001/cc/animation/element_animations_unittest.cc File cc/animation/element_animations_unittest.cc (right): https://codereview.chromium.org/2527623002/diff/20001/cc/animation/element_animations_unittest.cc#newcode3651 cc/animation/element_animations_unittest.cc:3651: EXPECT_EQ(1u, host_impl_->active_element_animations_for_testing().size()); This should be 0 since we don't ...
4 years ago (2016-11-27 23:38:53 UTC) #9
loyso (OOO)
https://codereview.chromium.org/2527623002/diff/20001/cc/animation/element_animations_unittest.cc File cc/animation/element_animations_unittest.cc (right): https://codereview.chromium.org/2527623002/diff/20001/cc/animation/element_animations_unittest.cc#newcode3646 cc/animation/element_animations_unittest.cc:3646: host_->UnregisterElement(element_id_, ElementListType::ACTIVE); Please, introduce void AnimationTimelinesTest::DestroyTestMainLayer(){ client_.UnregisterElement(element_id_, ElementListType::ACTIVE); } ...
4 years ago (2016-11-28 00:05:53 UTC) #10
junchao.han
https://codereview.chromium.org/2527623002/diff/20001/cc/animation/element_animations.cc File cc/animation/element_animations.cc (right): https://codereview.chromium.org/2527623002/diff/20001/cc/animation/element_animations.cc#newcode163 cc/animation/element_animations.cc:163: animation_host_->DidDeactivateElementAnimations(this); On 2016/11/27 23:36:55, loyso wrote: > if you ...
4 years ago (2016-11-28 04:09:04 UTC) #11
loyso (OOO)
Cool! Looks very good. Wondering about those tests. They needs some tweaks, maybe. https://codereview.chromium.org/2527623002/diff/40001/cc/animation/element_animations.cc File ...
4 years ago (2016-11-28 04:27:04 UTC) #12
junchao.han
https://codereview.chromium.org/2527623002/diff/40001/cc/animation/element_animations.cc File cc/animation/element_animations.cc (right): https://codereview.chromium.org/2527623002/diff/40001/cc/animation/element_animations.cc#newcode376 cc/animation/element_animations.cc:376: if (is_active_ && (!was_active || force) && has_element_in_any_list()) { ...
4 years ago (2016-11-28 07:27:45 UTC) #14
junchao.han
On 2016/11/28 07:27:45, junchao.han wrote: > https://codereview.chromium.org/2527623002/diff/40001/cc/animation/element_animations.cc > File cc/animation/element_animations.cc (right): > > https://codereview.chromium.org/2527623002/diff/40001/cc/animation/element_animations.cc#newcode376 > ...
4 years ago (2016-11-28 07:29:56 UTC) #15
loyso (OOO)
LGTM
4 years ago (2016-11-29 02:56:47 UTC) #20
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/2527623002/60001
4 years ago (2016-11-29 02:59:06 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-11-29 03:10:42 UTC) #25
commit-bot: I haz the power
4 years ago (2016-11-29 03:13:44 UTC) #27
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/7e190bb23bc08d98e305c4e2b367acf932a2d800
Cr-Commit-Position: refs/heads/master@{#434862}

Powered by Google App Engine
This is Rietveld 408576698