Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2541513004: Ensure scrollToFragmentAnchor called before restoreScrollPositionAndViewState. (Closed)
Patch Set: add scrollToFragmentAnchor back to performPostLayoutTasks Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/test/data/navigation_controller/reload-with-url-anchor.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « content/test/data/navigation_controller/reload-with-url-anchor.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698