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

Unified Diff: Source/core/loader/FrameLoader.h

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: minor Created 5 years, 7 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/core/loader/FrameLoader.h
diff --git a/Source/core/loader/FrameLoader.h b/Source/core/loader/FrameLoader.h
index 02bdeae7a686f4dd0495b59988ca710e68996c20..4adda844855291ad30b13ce921de49848ad4b99c 100644
--- a/Source/core/loader/FrameLoader.h
+++ b/Source/core/loader/FrameLoader.h
@@ -168,7 +168,7 @@ public:
bool allowPlugins(ReasonForCallingAllowPlugins);
- void updateForSameDocumentNavigation(const KURL&, SameDocumentNavigationSource, PassRefPtr<SerializedScriptValue>, FrameLoadType);
+ void updateForSameDocumentNavigation(const KURL&, SameDocumentNavigationSource, PassRefPtr<SerializedScriptValue>, bool shouldRestoreScroll, FrameLoadType);
Nate Chapin 2015/05/07 20:26:59 This would ideally be an enum.
HistoryItem* currentItem() const { return m_currentItem.get(); }
void saveScrollState();
@@ -197,7 +197,7 @@ private:
bool validateTransitionNavigationMode();
bool dispatchNavigationTransitionData();
- void setHistoryItemStateForCommit(HistoryCommitType, bool isPushOrReplaceState = false, PassRefPtr<SerializedScriptValue> = nullptr);
+ void setHistoryItemStateForCommit(HistoryCommitType, bool isPushOrReplaceState = false, bool shouldRestoreScroll = true, PassRefPtr<SerializedScriptValue> = nullptr);
void loadInSameDocument(const KURL&, PassRefPtr<SerializedScriptValue> stateObject, FrameLoadType, ClientRedirectPolicy);

Powered by Google App Engine
This is Rietveld 408576698