| Index: cc/trees/layer_tree_host_unittest_scroll.cc
|
| diff --git a/cc/trees/layer_tree_host_unittest_scroll.cc b/cc/trees/layer_tree_host_unittest_scroll.cc
|
| index 22ae78a2a87194bc5fcdfee82036a14a7b96428b..5b0410e1b6926ca101d768731f244d7c70b5ddd1 100644
|
| --- a/cc/trees/layer_tree_host_unittest_scroll.cc
|
| +++ b/cc/trees/layer_tree_host_unittest_scroll.cc
|
| @@ -569,8 +569,9 @@ class LayerTreeHostScrollTestCaseWithChild : public LayerTreeHostScrollTest {
|
| root_layer->SetBounds(gfx::Size(10, 10));
|
|
|
| root_scroll_layer_ = FakePictureLayer::Create(&fake_content_layer_client_);
|
| - root_scroll_layer_->SetElementId(
|
| - LayerIdToElementIdForTesting(root_scroll_layer_->id()));
|
| + ElementId element_id;
|
| + element_id.id = root_scroll_layer_->id();
|
| + root_scroll_layer_->SetElementId(element_id);
|
| root_scroll_layer_->SetBounds(gfx::Size(110, 110));
|
| root_scroll_layer_->SetPosition(gfx::PointF());
|
| root_scroll_layer_->SetIsDrawable(true);
|
| @@ -583,8 +584,8 @@ class LayerTreeHostScrollTestCaseWithChild : public LayerTreeHostScrollTest {
|
| child_layer_->set_did_scroll_callback(
|
| base::Bind(&LayerTreeHostScrollTestCaseWithChild::DidScroll,
|
| base::Unretained(this)));
|
| - child_layer_->SetElementId(
|
| - LayerIdToElementIdForTesting(child_layer_->id()));
|
| + element_id.id = child_layer_->id();
|
| + child_layer_->SetElementId(element_id);
|
| child_layer_->SetBounds(gfx::Size(110, 110));
|
|
|
| if (scroll_child_layer_) {
|
| @@ -602,8 +603,8 @@ class LayerTreeHostScrollTestCaseWithChild : public LayerTreeHostScrollTest {
|
|
|
| child_layer_->SetIsDrawable(true);
|
| child_layer_->SetScrollClipLayerId(outer_container_layer->id());
|
| - child_layer_->SetElementId(
|
| - LayerIdToElementIdForTesting(child_layer_->id()));
|
| + element_id.id = child_layer_->id();
|
| + child_layer_->SetElementId(element_id);
|
| child_layer_->SetBounds(root_scroll_layer_->bounds());
|
| root_scroll_layer_->AddChild(child_layer_);
|
|
|
| @@ -1440,8 +1441,9 @@ class LayerTreeHostScrollTestLayerStructureChange
|
| scroll_layer->SetPosition(gfx::PointF());
|
| scroll_layer->SetIsDrawable(true);
|
| scroll_layer->SetScrollClipLayerId(parent->id());
|
| - scroll_layer->SetElementId(
|
| - LayerIdToElementIdForTesting(scroll_layer->id()));
|
| + ElementId element_id;
|
| + element_id.id = scroll_layer->id();
|
| + scroll_layer->SetElementId(element_id);
|
| scroll_layer->SetBounds(gfx::Size(parent->bounds().width() + 100,
|
| parent->bounds().height() + 100));
|
| scroll_layer->set_did_scroll_callback(base::Bind(
|
|
|