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

Unified Diff: third_party/WebKit/Source/web/WebHistoryItem.cpp

Issue 2628683003: Add DidSaveScrollOrScaleState flag to prevent restoreScrollPositionAndViewState restore from default (Closed)
Patch Set: add dump file 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..7dafe65c0362e9d925de5786ca54897371ee6d7f 100644
--- a/third_party/WebKit/Source/web/WebHistoryItem.cpp
+++ b/third_party/WebKit/Source/web/WebHistoryItem.cpp
@@ -198,6 +198,15 @@ WebVector<WebString> WebHistoryItem::getReferencedFilePaths() const {
return results;
}
+bool WebHistoryItem::didSaveScrollOrScaleState() const {
+ return m_private->didSaveScrollOrScaleState();
+}
+
+void WebHistoryItem::setDidSaveScrollOrScaleState(
+ bool hasSaveScrollOrScaleState) {
+ m_private->setDidSaveScrollOrScaleState(hasSaveScrollOrScaleState);
+}
+
WebHistoryItem::WebHistoryItem(HistoryItem* item) : m_private(item) {}
WebHistoryItem& WebHistoryItem::operator=(HistoryItem* item) {
« no previous file with comments | « third_party/WebKit/Source/core/loader/HistoryItem.cpp ('k') | third_party/WebKit/public/web/WebHistoryItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698