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

Unified Diff: cc/animation/element_animations.cc

Issue 1413003002: CC Animations: Fix AnimationHost mode integration with Property Trees. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: An attempt to fix weird EXPECT_EQ compilation errors. Created 5 years, 2 months 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 | « cc/animation/animation_player.cc ('k') | cc/test/animation_timelines_test_common.h » ('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 b358b5b5e6d3f6d495e25a7da143eb4f6269809b..09219dc2c2c0e6a8d5c33aac6f27e4ac57418e4f 100644
--- a/cc/animation/element_animations.cc
+++ b/cc/animation/element_animations.cc
@@ -94,6 +94,11 @@ void ElementAnimations::CreateLayerAnimationController(int layer_id) {
void ElementAnimations::DestroyLayerAnimationController() {
DCHECK(animation_host_);
+ if (active_value_observer_)
+ SetTransformIsPotentiallyAnimatingChanged(LayerTreeType::ACTIVE, false);
+ if (pending_value_observer_)
+ SetTransformIsPotentiallyAnimatingChanged(LayerTreeType::PENDING, false);
+
DestroyPendingValueObserver();
DestroyActiveValueObserver();
« no previous file with comments | « cc/animation/animation_player.cc ('k') | cc/test/animation_timelines_test_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698