| Index: third_party/WebKit/Source/core/frame/VisualViewport.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/VisualViewport.cpp b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
|
| index c398ce2899d20d489cc2e1b1c39ae5f10ab848c1..5f61223528a847ff9b6a4834cd76ab341e7c3f3a 100644
|
| --- a/third_party/WebKit/Source/core/frame/VisualViewport.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
|
| @@ -252,14 +252,6 @@ bool VisualViewport::magnifyScaleAroundAnchor(float magnifyDelta, const FloatPoi
|
| // First try to use the anchor's delta to scroll the FrameView.
|
| FloatSize anchorDeltaUnusedByScroll = anchorDelta;
|
|
|
| - if (!frameHost().settings().invertViewportScrollOrder()) {
|
| - FrameView* view = mainFrame()->view();
|
| - DoublePoint oldPosition = view->scrollPositionDouble();
|
| - view->scrollBy(DoubleSize(anchorDelta.width(), anchorDelta.height()), UserScroll);
|
| - DoublePoint newPosition = view->scrollPositionDouble();
|
| - anchorDeltaUnusedByScroll -= toFloatSize(newPosition - oldPosition);
|
| - }
|
| -
|
| // Manually bubble any remaining anchor delta up to the visual viewport.
|
| FloatPoint newLocation(location() + anchorDeltaUnusedByScroll);
|
| setScaleAndLocation(newPageScale, newLocation);
|
|
|