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

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: Created 5 years, 7 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 88a7e89c975be51e51609a414724e5e723c30ca0..2cb18a83f5249fde787171e25f0a4dbca739ba5e 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -3471,10 +3471,6 @@ void WebViewImpl::resetScrollAndScaleState()
if (!page()->mainFrame()->isLocalFrame())
return;
-
- // 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.

Powered by Google App Engine
This is Rietveld 408576698