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

Unified Diff: cc/trees/layer_tree_host_unittest_animation.cc

Issue 2340923003: CC Animation: Rework iterations over players to use the range-based for loop. (Closed)
Patch Set: Rebase. Created 4 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/test/animation_timelines_test_common.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_unittest_animation.cc
diff --git a/cc/trees/layer_tree_host_unittest_animation.cc b/cc/trees/layer_tree_host_unittest_animation.cc
index 44f7d83f7b6a7de0247a7305f6225bcd8156f957..f7d1536acda64a0c1a8457c3eeb8cbc6bb5de2b3 100644
--- a/cc/trees/layer_tree_host_unittest_animation.cc
+++ b/cc/trees/layer_tree_host_unittest_animation.cc
@@ -858,10 +858,7 @@ class LayerTreeHostAnimationTestScrollOffsetAnimationAdjusted
layer->element_id());
DCHECK(element_animations);
DCHECK(element_animations->players_list().might_have_observers());
-
- ElementAnimations::PlayersList::Iterator it(
- &element_animations->players_list());
- AnimationPlayer* player = it.GetNext();
+ AnimationPlayer* player = &*element_animations->players_list().begin();
DCHECK(player);
return *player;
}
« no previous file with comments | « cc/test/animation_timelines_test_common.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698