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

Unified Diff: third_party/WebKit/Source/core/loader/HistoryItem.cpp

Issue 2628683003: Add DidSaveScrollOrScaleState flag to prevent restoreScrollPositionAndViewState restore from default (Closed)
Patch Set: add test Created 3 years, 10 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: third_party/WebKit/Source/core/loader/HistoryItem.cpp
diff --git a/third_party/WebKit/Source/core/loader/HistoryItem.cpp b/third_party/WebKit/Source/core/loader/HistoryItem.cpp
index 28340e438aca7ea09e732fa0a80eb42f7419f7ac..945c3a0a3b18eeb5d894cf8950517ab0e7b519cf 100644
--- a/third_party/WebKit/Source/core/loader/HistoryItem.cpp
+++ b/third_party/WebKit/Source/core/loader/HistoryItem.cpp
@@ -46,7 +46,8 @@ HistoryItem::HistoryItem()
: m_pageScaleFactor(0),
m_itemSequenceNumber(generateSequenceNumber()),
m_documentSequenceNumber(generateSequenceNumber()),
- m_scrollRestorationType(ScrollRestorationAuto) {}
+ m_scrollRestorationType(ScrollRestorationAuto),
+ m_didSaveScrollState(false) {}
HistoryItem::~HistoryItem() {}

Powered by Google App Engine
This is Rietveld 408576698