| Index: cc/test/animation_test_common.cc
|
| diff --git a/cc/test/animation_test_common.cc b/cc/test/animation_test_common.cc
|
| index 9248eb3a7ad8eeb34a93d09cac75da4e01cbc1b4..cadf120ed3d3c67456f9ac9697df7b5659b3ec92 100644
|
| --- a/cc/test/animation_test_common.cc
|
| +++ b/cc/test/animation_test_common.cc
|
| @@ -309,9 +309,7 @@ void AddAnimationToElementWithExistingPlayer(
|
| timeline->animation_host()->GetElementAnimationsForElementId(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);
|
| player->AddAnimation(std::move(animation));
|
| }
|
| @@ -324,9 +322,7 @@ void RemoveAnimationFromElementWithExistingPlayer(
|
| timeline->animation_host()->GetElementAnimationsForElementId(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);
|
| player->RemoveAnimation(animation_id);
|
| }
|
| @@ -339,9 +335,7 @@ Animation* GetAnimationFromElementWithExistingPlayer(
|
| timeline->animation_host()->GetElementAnimationsForElementId(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->GetAnimationById(animation_id);
|
| }
|
|
|