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

Unified Diff: cc/animation/animation_player.cc

Issue 2966723003: Add support for bounds animations (Closed)
Patch Set: address reviewer feedback Created 3 years, 5 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_curve.cc ('k') | cc/animation/element_animations.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/animation_player.cc
diff --git a/cc/animation/animation_player.cc b/cc/animation/animation_player.cc
index 3174dcbdab096b0c5b8c3269e6a638372bdbfa47..b08284f6ad190715f5c313dbd5be81756cc478ca 100644
--- a/cc/animation/animation_player.cc
+++ b/cc/animation/animation_player.cc
@@ -784,6 +784,16 @@ void AnimationPlayer::TickAnimations(base::TimeTicks monotonic_time) {
animations_[i]->affects_pending_elements());
break;
}
+
+ case TargetProperty::BOUNDS: {
+ const SizeAnimationCurve* size_animation_curve =
+ animations_[i]->curve()->ToSizeAnimationCurve();
+ const gfx::SizeF size = size_animation_curve->GetValue(trimmed);
+ element_animations_->NotifyClientBoundsAnimated(
+ size, animations_[i]->affects_active_elements(),
+ animations_[i]->affects_pending_elements());
+ break;
+ }
}
}
}
« no previous file with comments | « cc/animation/animation_curve.cc ('k') | cc/animation/element_animations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698