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

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, 1 month 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 | « Source/web/WebHistoryItem.cpp ('k') | Source/web/tests/ProgrammaticScrollTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index f2b468300dc3cdbb1f46b609014d9e16ae27d659..e64b8515c5e5c55354c0f498a9cbc924146d75ac 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -3097,8 +3097,8 @@ 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()->clearScrollPositionAndViewState();
+ page()->history()->saveDocumentAndScrollState(page()->mainFrame());
+ page()->history()->clearScrollPositionAndViewState();
m_pageScaleConstraintsSet.setNeedsReset(true);
// Clobber saved scales and scroll offsets.
« no previous file with comments | « Source/web/WebHistoryItem.cpp ('k') | Source/web/tests/ProgrammaticScrollTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698