| Index: cc/layer_tree_host_impl.cc
|
| diff --git a/cc/layer_tree_host_impl.cc b/cc/layer_tree_host_impl.cc
|
| index 8c2df3c2052a7f927423534bf3c84204da99f5fc..8ea79c2975c1f8ae9477094c60f31672fbd7e5d6 100644
|
| --- a/cc/layer_tree_host_impl.cc
|
| +++ b/cc/layer_tree_host_impl.cc
|
| @@ -1241,13 +1241,10 @@ void LayerTreeHostImpl::pinchGestureUpdate(float magnifyDelta, gfx::Point anchor
|
| if (!m_rootScrollLayerImpl)
|
| return;
|
|
|
| - if (m_previousPinchAnchor == gfx::Point())
|
| - m_previousPinchAnchor = anchor;
|
| -
|
| // Keep the center-of-pinch anchor specified by (x, y) in a stable
|
| // position over the course of the magnify.
|
| float pageScaleDelta = m_pinchZoomViewport.pageScaleDelta();
|
| - gfx::PointF previousScaleAnchor = gfx::ScalePoint(m_previousPinchAnchor, 1 / pageScaleDelta);
|
| + gfx::PointF previousScaleAnchor = gfx::ScalePoint(anchor, 1 / pageScaleDelta);
|
| setPageScaleDelta(pageScaleDelta * magnifyDelta);
|
| pageScaleDelta = m_pinchZoomViewport.pageScaleDelta();
|
| gfx::PointF newScaleAnchor = gfx::ScalePoint(anchor, 1 / pageScaleDelta);
|
|
|