Index: cc/trees/layer_tree_host_unittest_context.cc |
diff --git a/cc/trees/layer_tree_host_unittest_context.cc b/cc/trees/layer_tree_host_unittest_context.cc |
index 44347d3e88493e6e617298c1b1cda2ac18812b4d..72a23c4355a2ea91b3e29e86c681f3b3634588ea 100644 |
--- a/cc/trees/layer_tree_host_unittest_context.cc |
+++ b/cc/trees/layer_tree_host_unittest_context.cc |
@@ -1249,7 +1249,7 @@ class LayerTreeHostContextTestDontUseLostResources |
scoped_refptr<PaintedScrollbarLayer> scrollbar = |
PaintedScrollbarLayer::Create( |
- scoped_ptr<Scrollbar>(new FakeScrollbar).Pass(), content->id()); |
+ scoped_ptr<Scrollbar>(new FakeScrollbar).Pass(), content.get()); |
scrollbar->SetBounds(gfx::Size(10, 10)); |
scrollbar->SetAnchorPoint(gfx::PointF()); |
scrollbar->SetIsDrawable(true); |
@@ -1682,7 +1682,7 @@ class ScrollbarLayerLostContext : public LayerTreeHostContextTest { |
virtual void BeginTest() OVERRIDE { |
scoped_refptr<Layer> scroll_layer = Layer::Create(); |
scrollbar_layer_ = FakePaintedScrollbarLayer::Create( |
- false, true, scroll_layer->id()); |
+ false, true, scroll_layer.get()); // WJM |
enne (OOO)
2013/11/19 19:30:22
?
wjmaclean
2013/12/24 21:03:49
Ooops! Removed spurious comment.
|
scrollbar_layer_->SetBounds(gfx::Size(10, 100)); |
layer_tree_host()->root_layer()->AddChild(scrollbar_layer_); |
layer_tree_host()->root_layer()->AddChild(scroll_layer); |