| Index: Source/core/frame/RootFrameViewport.cpp
|
| diff --git a/Source/core/frame/RootFrameViewport.cpp b/Source/core/frame/RootFrameViewport.cpp
|
| index 6ba7d2e5d353e405d89374dfaf3594284ac09da3..84601b5bfbee029561c3c1fa00f8e8857ad0e6e2 100644
|
| --- a/Source/core/frame/RootFrameViewport.cpp
|
| +++ b/Source/core/frame/RootFrameViewport.cpp
|
| @@ -161,8 +161,7 @@ LayoutRect RootFrameViewport::scrollIntoView(const LayoutRect& rectInContent, co
|
| targetViewport.setSize(LayoutSize(visualViewport().visibleContentRect().size()));
|
|
|
| // Snap the visible rect to layout units to match the calculated target viewport rect.
|
| - FloatRect visible =
|
| - LayoutRect(visualViewport().scrollPositionDouble(), visualViewport().visibleContentRect().size());
|
| + FloatRect visible(LayoutRect(visualViewport().scrollPositionDouble(), visualViewport().visibleContentRect().size()));
|
|
|
| float centeringOffsetX = (visible.width() - targetViewport.width()) / 2;
|
| float centeringOffsetY = (visible.height() - targetViewport.height()) / 2;
|
|
|