| Index: cc/test/animation_timelines_test_common.cc
|
| diff --git a/cc/test/animation_timelines_test_common.cc b/cc/test/animation_timelines_test_common.cc
|
| index 5c8935d2237231a3a606181867302aaebf0183ee..d92eeff38669fd9b083e6436c251ba9c9767ee57 100644
|
| --- a/cc/test/animation_timelines_test_common.cc
|
| +++ b/cc/test/animation_timelines_test_common.cc
|
| @@ -180,9 +180,9 @@
|
|
|
| void TestHostClient::RegisterElement(ElementId element_id,
|
| ElementListType list_type) {
|
| - ElementIdToTestLayer& layers_in_tree = list_type == ElementListType::ACTIVE
|
| - ? layers_in_active_tree_
|
| - : layers_in_pending_tree_;
|
| + LayerIdToTestLayer& layers_in_tree = list_type == ElementListType::ACTIVE
|
| + ? layers_in_active_tree_
|
| + : layers_in_pending_tree_;
|
| DCHECK(layers_in_tree.find(element_id) == layers_in_tree.end());
|
| layers_in_tree[element_id] = TestLayer::Create();
|
|
|
| @@ -195,9 +195,9 @@
|
| DCHECK(host_);
|
| host_->UnregisterElement(element_id, list_type);
|
|
|
| - ElementIdToTestLayer& layers_in_tree = list_type == ElementListType::ACTIVE
|
| - ? layers_in_active_tree_
|
| - : layers_in_pending_tree_;
|
| + LayerIdToTestLayer& layers_in_tree = list_type == ElementListType::ACTIVE
|
| + ? layers_in_active_tree_
|
| + : layers_in_pending_tree_;
|
| auto kv = layers_in_tree.find(element_id);
|
| DCHECK(kv != layers_in_tree.end());
|
| layers_in_tree.erase(kv);
|
| @@ -303,7 +303,7 @@
|
|
|
| TestLayer* TestHostClient::FindTestLayer(ElementId element_id,
|
| ElementListType list_type) const {
|
| - const ElementIdToTestLayer& layers_in_tree =
|
| + const LayerIdToTestLayer& layers_in_tree =
|
| list_type == ElementListType::ACTIVE ? layers_in_active_tree_
|
| : layers_in_pending_tree_;
|
| auto kv = layers_in_tree.find(element_id);
|
| @@ -362,7 +362,7 @@
|
| host_ = client_.host();
|
| host_impl_ = client_impl_.host();
|
|
|
| - element_id_ = ElementId(NextTestLayerId(), 0);
|
| + element_id_ = NextTestLayerId();
|
| }
|
|
|
| AnimationTimelinesTest::~AnimationTimelinesTest() {
|
| @@ -451,7 +451,7 @@
|
| host_->SetAnimationEvents(std::move(events));
|
| }
|
|
|
| -AnimationPlayer* AnimationTimelinesTest::GetPlayerForElementId(
|
| +AnimationPlayer* AnimationTimelinesTest::GetPlayerForLayerId(
|
| ElementId element_id) {
|
| const scoped_refptr<ElementAnimations> element_animations =
|
| host_->GetElementAnimationsForElementId(element_id);
|
|
|