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

Unified Diff: Source/web/WebViewImpl.cpp

Issue 28983004: Split the frame tree logic out of HistoryItem (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 months 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
Index: Source/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index 43cb8a46d9a5bc4544943f1b9b92f79d2abd90e3..4271b70c9dc1f80ee6c1cebee3901c05580886b2 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -3071,7 +3071,7 @@ void WebViewImpl::resetScrollAndScaleState()
// Clear out the values for the current history item. This will prevent the history item from clobbering the
// value determined during page scale initialization, which may be less than 1.
- page()->mainFrame()->loader()->history()->saveDocumentAndScrollState();
+ page()->mainFrame()->loader()->history()->saveDocumentAndScrollState(page()->mainFrame());
page()->mainFrame()->loader()->history()->clearScrollPositionAndViewState();
m_pageScaleConstraintsSet.setNeedsReset(true);

Powered by Google App Engine
This is Rietveld 408576698