| Index: cc/trees/layer_tree_host_unittest.cc
|
| diff --git a/cc/trees/layer_tree_host_unittest.cc b/cc/trees/layer_tree_host_unittest.cc
|
| index 2331427e8730f6c9842c2c49538a88b9e06e7de5..fd678adc2d25bbd67182c57cbde86dee32d82e11 100644
|
| --- a/cc/trees/layer_tree_host_unittest.cc
|
| +++ b/cc/trees/layer_tree_host_unittest.cc
|
| @@ -396,7 +396,7 @@ class LayerTreeHostTestNoExtraCommitFromScrollbarInvalidate
|
| bool paint_scrollbar = true;
|
| bool has_thumb = false;
|
| scrollbar_ = FakePaintedScrollbarLayer::Create(
|
| - paint_scrollbar, has_thumb, root_layer_->id());
|
| + paint_scrollbar, has_thumb, root_layer_.get());
|
| scrollbar_->SetPosition(gfx::Point(0, 10));
|
| scrollbar_->SetBounds(gfx::Size(10, 10));
|
|
|
| @@ -1045,7 +1045,7 @@ class DISABLED_LayerTreeHostTestStartPageScaleAnimation
|
| LayerTreeHostTest::SetupTree();
|
|
|
| scroll_layer_ = FakeContentLayer::Create(&client_);
|
| - scroll_layer_->SetScrollable(true);
|
| + scroll_layer_->SetScrollable(scroll_layer_->parent()); // WJM
|
| scroll_layer_->SetScrollOffset(gfx::Vector2d());
|
| layer_tree_host()->root_layer()->AddChild(scroll_layer_);
|
| }
|
| @@ -1359,7 +1359,7 @@ class LayerTreeHostTestDirectRendererAtomicCommit : public LayerTreeHostTest {
|
| bool paint_scrollbar = true;
|
| bool has_thumb = false;
|
| scrollbar_ = FakePaintedScrollbarLayer::Create(
|
| - paint_scrollbar, has_thumb, layer_->id());
|
| + paint_scrollbar, has_thumb, layer_);
|
| scrollbar_->SetPosition(gfx::Point(0, 10));
|
| scrollbar_->SetBounds(gfx::Size(10, 10));
|
|
|
| @@ -3992,7 +3992,7 @@ class LayerTreeHostTestPropertyChangesDuringUpdateArePushed
|
| bool paint_scrollbar = true;
|
| bool has_thumb = false;
|
| scrollbar_layer_ = FakePaintedScrollbarLayer::Create(
|
| - paint_scrollbar, has_thumb, root_->id());
|
| + paint_scrollbar, has_thumb, root_.get());
|
|
|
| root_->AddChild(scrollbar_layer_);
|
|
|
|
|