| 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 b90831e02b4e5f3e1e4ae31858281c2207c90db6..50dc6ea836b9d3105e58134e0ad77d2fa67fdef6 100644
|
| --- a/cc/trees/layer_tree_host_unittest.cc
|
| +++ b/cc/trees/layer_tree_host_unittest.cc
|
| @@ -852,7 +852,7 @@ class LayerTreeHostTestStartPageScaleAnimation : public LayerTreeHostTest {
|
| scroll_layer_->SetIsContainerForFixedPositionLayers(true);
|
| scroll_layer_->SetBounds(gfx::Size(2 * root_layer->bounds().width(),
|
| 2 * root_layer->bounds().height()));
|
| - scroll_layer_->SetScrollOffset(gfx::Vector2d());
|
| + scroll_layer_->SetScrollOffset(gfx::ScrollOffset());
|
| layer_tree_host()->root_layer()->AddChild(scroll_layer_);
|
| // This test requires the page_scale and inner viewport layers to be
|
| // identified.
|
| @@ -866,8 +866,9 @@ class LayerTreeHostTestStartPageScaleAnimation : public LayerTreeHostTest {
|
| virtual void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta,
|
| float scale,
|
| float) OVERRIDE {
|
| - gfx::Vector2d offset = scroll_layer_->scroll_offset();
|
| - scroll_layer_->SetScrollOffset(offset + scroll_delta);
|
| + gfx::ScrollOffset offset = scroll_layer_->scroll_offset();
|
| + scroll_layer_->SetScrollOffset(ScrollOffsetWithDelta(offset,
|
| + scroll_delta));
|
| layer_tree_host()->SetPageScaleFactorAndLimits(scale, 0.5f, 2.f);
|
| }
|
|
|
|
|