| Index: third_party/WebKit/Source/core/frame/RootFrameViewport.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/RootFrameViewport.cpp b/third_party/WebKit/Source/core/frame/RootFrameViewport.cpp
|
| index 33f97264ebe89ac064a786042175e40962179c21..bfdb0230d937d2fa01511da086f779ca05d225c9 100644
|
| --- a/third_party/WebKit/Source/core/frame/RootFrameViewport.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/RootFrameViewport.cpp
|
| @@ -109,9 +109,8 @@ LayoutRect RootFrameViewport::scrollIntoView(const LayoutRect& rectInContent, co
|
| LayoutRect viewRectInContent = intersection(visualRectInContent, frameRectInContent);
|
| LayoutRect targetViewport =
|
| ScrollAlignment::getRectToExpose(viewRectInContent, rectInContent, alignX, alignY);
|
| - DoublePoint targetOffset(targetViewport.x(), targetViewport.y());
|
| -
|
| - setScrollPosition(targetOffset, scrollType, ScrollBehaviorInstant);
|
| + if (targetViewport != viewRectInContent)
|
| + setScrollPosition(DoublePoint(targetViewport.x(), targetViewport.y()), scrollType);
|
|
|
| // RootFrameViewport only changes the viewport relative to the document so we can't change the input
|
| // rect's location relative to the document origin.
|
|
|