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..c733773a103c56c20adc4c881007937051a169ec 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 |
Charlie Reis
2016/12/05 18:54:15
nit: when reloading.
nit: End with period.
|
+ scrollToFragmentAnchor(); |
frame().loader().restoreScrollPositionAndViewState(); |
} |
@@ -2379,7 +2383,6 @@ void FrameView::performPostLayoutTasks() { |
if (ScrollingCoordinator* scrollingCoordinator = this->scrollingCoordinator()) |
scrollingCoordinator->notifyGeometryChanged(); |
- scrollToFragmentAnchor(); |
sendResizeEventIfNeeded(); |
} |