| Index: cc/trees/layer_tree_host_impl_unittest.cc
|
| diff --git a/cc/trees/layer_tree_host_impl_unittest.cc b/cc/trees/layer_tree_host_impl_unittest.cc
|
| index bf60a074e87f600b6c33f21f251f9e3be1c06bb7..43a4130343a64c77b4f2988e59b2b639aac13059 100644
|
| --- a/cc/trees/layer_tree_host_impl_unittest.cc
|
| +++ b/cc/trees/layer_tree_host_impl_unittest.cc
|
| @@ -306,6 +306,10 @@ class LayerTreeHostImplTest : public testing::Test,
|
|
|
| LayerImpl* CreateScrollAndContentsLayers(LayerTreeImpl* layer_tree_impl,
|
| const gfx::Size& content_size) {
|
| + // Clear any existing viewport layers that were setup so this function can
|
| + // be called multiple times.
|
| + layer_tree_impl->ClearViewportLayers();
|
| +
|
| // Create both an inner viewport scroll layer and an outer viewport scroll
|
| // layer. The MaxScrollOffset of the outer viewport scroll layer will be
|
| // 0x0, so the scrolls will be applied directly to the inner viewport.
|
|
|