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

Unified Diff: third_party/WebKit/Source/web/WebHistoryItem.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/web/WebHistoryItem.cpp
diff --git a/third_party/WebKit/Source/web/WebHistoryItem.cpp b/third_party/WebKit/Source/web/WebHistoryItem.cpp
index bdd4bf713e7125ea38d96a924fdb731bfd2de856..c6557badf6fa8a4ca28fb450d9c1538ee17630a5 100644
--- a/third_party/WebKit/Source/web/WebHistoryItem.cpp
+++ b/third_party/WebKit/Source/web/WebHistoryItem.cpp
@@ -198,6 +198,14 @@ WebVector<WebString> WebHistoryItem::getReferencedFilePaths() const {
return results;
}
+bool WebHistoryItem::didSaveScrollState() const {
+ return m_private->didSaveScrollState();
+}
+
+void WebHistoryItem::setDidSaveScrollState(bool hasSaveScrollState) {
+ m_private->setDidSaveScrollState(hasSaveScrollState);
+}
+
WebHistoryItem::WebHistoryItem(HistoryItem* item) : m_private(item) {}
WebHistoryItem& WebHistoryItem::operator=(HistoryItem* item) {

Powered by Google App Engine
This is Rietveld 408576698