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

Unified Diff: Source/web/WebViewImpl.cpp

Issue 1159723003: Don't reuse HistoryItems for multiple navigations (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 5 years, 6 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
« no previous file with comments | « Source/core/loader/HistoryItem.cpp ('k') | Source/web/tests/WebFrameTest.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 5b7842fa68deac801679a6f650775344e28bf1fe..b6ee0b3e63581bd0e9dbe4228adead5f46ec75bd 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -3359,9 +3359,6 @@ void WebViewImpl::resetScrollAndScaleState()
scrollableArea->notifyScrollPositionChanged(DoublePoint::zero());
}
- // 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()->deprecatedLocalMainFrame()->loader().clearScrollPositionAndViewState();
pageScaleConstraintsSet().setNeedsReset(true);
// Clobber saved scales and scroll offsets.
« no previous file with comments | « Source/core/loader/HistoryItem.cpp ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698