| Index: cc/trees/layer_tree_host_unittest_damage.cc
|
| diff --git a/cc/trees/layer_tree_host_unittest_damage.cc b/cc/trees/layer_tree_host_unittest_damage.cc
|
| index 6d2b71bee57e97fb692c352ee1a496a80946deeb..6ca11e9c51b4f9f0c000f7b40b2544a5c088de8e 100644
|
| --- a/cc/trees/layer_tree_host_unittest_damage.cc
|
| +++ b/cc/trees/layer_tree_host_unittest_damage.cc
|
| @@ -410,8 +410,8 @@ class LayerTreeHostDamageTestScrollbarDoesDamage
|
| ++did_swaps_;
|
| EXPECT_TRUE(result);
|
| LayerImpl* root = host_impl->active_tree()->root_layer();
|
| - LayerImpl* scroll_clip_layer = root->children()[0];
|
| - LayerImpl* scroll_layer = scroll_clip_layer->children()[0];
|
| + LayerImpl* scroll_clip_layer = root->children()[0].get();
|
| + LayerImpl* scroll_layer = scroll_clip_layer->children()[0].get();
|
| switch (did_swaps_) {
|
| case 1:
|
| // Test that modifying the position of the content layer (not
|
| @@ -503,8 +503,8 @@ class LayerTreeHostDamageTestScrollbarCommitDoesNoDamage
|
| ++did_swaps_;
|
| EXPECT_TRUE(result);
|
| LayerImpl* root = host_impl->active_tree()->root_layer();
|
| - LayerImpl* scroll_clip_layer = root->children()[0];
|
| - LayerImpl* scroll_layer = scroll_clip_layer->children()[0];
|
| + LayerImpl* scroll_clip_layer = root->children()[0].get();
|
| + LayerImpl* scroll_layer = scroll_clip_layer->children()[0].get();
|
| switch (did_swaps_) {
|
| case 1:
|
| // Scroll on the thread. This should damage the scrollbar for the
|
|
|