| 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 b42da5159917ed6d0fa5d353d69374a060836dc3..f3e15a1aa2f87a7328f92394449a59bef928c9d9 100644
|
| --- a/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| @@ -643,6 +643,10 @@ void FrameView::setContentsSize(const IntSize& size) {
|
| updateParentScrollableAreaSet();
|
|
|
| page->chromeClient().contentsSizeChanged(m_frame.get(), size);
|
| +
|
| + // Ensure the scrollToFragmentAnchor is called before
|
| + // restoreScrollPositionAndViewState when reload
|
| + scrollToFragmentAnchor();
|
| frame().loader().restoreScrollPositionAndViewState();
|
| }
|
|
|
|
|