| 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 95256f8fd2dcc4cb21f24d1ecd36690a539a9a54..cd35494b0c355d41c1c54f7b8c54e3da37dc9248 100644
|
| --- a/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| @@ -3743,11 +3743,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;
|
|
|