| Index: cc/layers/viewport.cc
|
| diff --git a/cc/layers/viewport.cc b/cc/layers/viewport.cc
|
| index 77ebc2658a971c71e4e2d5cc1421b9d543c88fff..80e711fd027db3979b9d2098ce5578ff6e911685 100644
|
| --- a/cc/layers/viewport.cc
|
| +++ b/cc/layers/viewport.cc
|
| @@ -67,8 +67,8 @@ Viewport::ScrollResult Viewport::ScrollBy(const gfx::Vector2dF& delta,
|
| }
|
|
|
| void Viewport::SnapPinchAnchorIfWithinMargin(const gfx::Point& anchor) {
|
| - gfx::SizeF viewport_size =
|
| - host_impl_->active_tree()->InnerViewportContainerLayer()->bounds();
|
| + gfx::SizeF viewport_size = gfx::SizeF(
|
| + host_impl_->active_tree()->InnerViewportContainerLayer()->bounds());
|
|
|
| if (anchor.x() < kPinchZoomSnapMarginDips)
|
| pinch_anchor_adjustment_.set_x(-anchor.x());
|
|
|