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

Unified Diff: cc/animation/element_animations.cc

Issue 2527623002: add has_element_in_any_list check in ElementAnimations::UpdateActivation (Closed)
Patch Set: update check condition Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/animation/element_animations_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/element_animations.cc
diff --git a/cc/animation/element_animations.cc b/cc/animation/element_animations.cc
index f8a7e9e9bef15e53dfa6504c74bc2f24867d0169..8b51971bb8ada5da832bb1e8b3c39f6a17148514 100644
--- a/cc/animation/element_animations.cc
+++ b/cc/animation/element_animations.cc
@@ -373,7 +373,7 @@ void ElementAnimations::UpdateActivation(ActivationType type) {
}
}
- if (is_active_ && (!was_active || force)) {
+ if (is_active_ && ((!was_active && has_element_in_any_list()) || force)) {
animation_host_->DidActivateElementAnimations(this);
} else if (!is_active_ && (was_active || force)) {
// Resetting last_tick_time_ here ensures that calling ::UpdateState
« no previous file with comments | « no previous file | cc/animation/element_animations_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698