| Index: third_party/WebKit/Source/core/frame/FrameView.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| index 69dcfa20d7352261d3bc6e30e1e5834bf8881b5c..bc81e5d688e772c706d65338fc87237fc5c3ee69 100644
|
| --- a/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| @@ -3735,11 +3735,8 @@ LayoutRect FrameView::scrollIntoView(const LayoutRect& rectInContent, const Scro
|
| {
|
| LayoutRect viewRect(visibleContentRect());
|
| LayoutRect exposeRect = ScrollAlignment::getRectToExpose(viewRect, rectInContent, alignX, alignY);
|
| -
|
| - double xOffset = exposeRect.x();
|
| - double yOffset = exposeRect.y();
|
| -
|
| - setScrollPosition(DoublePoint(xOffset, yOffset), scrollType);
|
| + if (exposeRect != viewRect)
|
| + setScrollPosition(DoublePoint(exposeRect.x(), exposeRect.y()), scrollType);
|
|
|
| // Scrolling the FrameView cannot change the input rect's location relative to the document.
|
| return rectInContent;
|
|
|