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

Unified Diff: cc/animation/animation_player.cc

Issue 2883713002: Document some transform node animation fields. (Closed)
Patch Set: Fix comment on node_and_ancestors_are_animated_or_invertible. Created 3 years, 7 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
Index: cc/animation/animation_player.cc
diff --git a/cc/animation/animation_player.cc b/cc/animation/animation_player.cc
index 3174dcbdab096b0c5b8c3269e6a638372bdbfa47..66fd35d30be3e4fea632ab7bde6e98e8a7f31913 100644
--- a/cc/animation/animation_player.cc
+++ b/cc/animation/animation_player.cc
@@ -1007,6 +1007,9 @@ bool AnimationPlayer::MaximumTargetScale(ElementListType list_type,
bool AnimationPlayer::IsPotentiallyAnimatingProperty(
TargetProperty::Type target_property,
ElementListType list_type) const {
+ // TODO(wkorman): Consider refactoring this to share implementation
+ // with IsCurrentlyAnimatingProperty. The only difference is
+ // whether we consider InEffect(last_tick_time_) on each.
for (size_t i = 0; i < animations_.size(); ++i) {
if (!animations_[i]->is_finished() &&
animations_[i]->target_property() == target_property) {
« no previous file with comments | « cc/README.md ('k') | cc/trees/property_tree.h » ('j') | cc/trees/property_tree.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698