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

Unified Diff: Source/web/WebHistoryItem.cpp

Issue 927213004: Accept options in history APIs to allow scroll restoration to be disabled (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Improve the test Created 5 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: Source/web/WebHistoryItem.cpp
diff --git a/Source/web/WebHistoryItem.cpp b/Source/web/WebHistoryItem.cpp
index 99623e7d00484eda86aa7858e2f1cd466313f97b..3578f4d0d74ef80a02ddb7a66ba45ac2eaac8c3b 100644
--- a/Source/web/WebHistoryItem.cpp
+++ b/Source/web/WebHistoryItem.cpp
@@ -169,6 +169,16 @@ void WebHistoryItem::setFrameSequenceNumber(long long frameSequenceNumber)
m_private->setFrameSequenceNumber(frameSequenceNumber);
}
+bool WebHistoryItem::isCreatedByHistoryAPI() const
+{
+ return m_private->isCreatedByHistoryAPI();
+}
+
+void WebHistoryItem::setIsCreatedByHistoryAPI(bool isCreatedByHistoryAPI)
+{
+ m_private->setIsCreatedByHistoryAPI(isCreatedByHistoryAPI);
+}
+
WebSerializedScriptValue WebHistoryItem::stateObject() const
{
return WebSerializedScriptValue(m_private->stateObject());

Powered by Google App Engine
This is Rietveld 408576698