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

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

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.h
diff --git a/third_party/WebKit/Source/core/loader/HistoryItem.h b/third_party/WebKit/Source/core/loader/HistoryItem.h
index 35ca7fa81c8224130b7fc44ffa908f58e07ed389..a106a4e5e3587f38cfad62b8978bafbc08ba7dfd 100644
--- a/third_party/WebKit/Source/core/loader/HistoryItem.h
+++ b/third_party/WebKit/Source/core/loader/HistoryItem.h
@@ -99,6 +99,12 @@ class CORE_EXPORT HistoryItem final
return m_scrollRestorationType;
}
+ void setDidSaveScrollState(bool hasSaveScrollState) {
+ m_didSaveScrollState = hasSaveScrollState;
+ }
+
+ bool didSaveScrollState() const { return m_didSaveScrollState; }
+
void setFormInfoFromRequest(const ResourceRequest&);
void setFormData(PassRefPtr<EncodedFormData>);
void setFormContentType(const AtomicString&);
@@ -142,6 +148,8 @@ class CORE_EXPORT HistoryItem final
RefPtr<EncodedFormData> m_formData;
AtomicString m_formContentType;
+ bool m_didSaveScrollState;
majidvp 2017/02/14 20:42:17 nit: maybe move this next to scroll state related
+
}; // class HistoryItem
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698