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

Unified Diff: third_party/WebKit/Source/core/frame/History.cpp

Issue 2340453002: Remove ScrollRestoration runtime flag (status=stable) (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/History.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/History.cpp
diff --git a/third_party/WebKit/Source/core/frame/History.cpp b/third_party/WebKit/Source/core/frame/History.cpp
index 0b9503f6a518b1944228ed029660b16b554658ff..313a4f0c10553f59e67748392f1fc82448c1402f 100644
--- a/third_party/WebKit/Source/core/frame/History.cpp
+++ b/third_party/WebKit/Source/core/frame/History.cpp
@@ -93,7 +93,7 @@ SerializedScriptValue* History::stateInternal() const
void History::setScrollRestoration(const String& value)
{
ASSERT(value == "manual" || value == "auto");
- if (!m_frame || !m_frame->loader().client() || !RuntimeEnabledFeatures::scrollRestorationEnabled())
+ if (!m_frame || !m_frame->loader().client())
return;
HistoryScrollRestorationType scrollRestoration = value == "manual" ? ScrollRestorationManual : ScrollRestorationAuto;
@@ -113,7 +113,7 @@ String History::scrollRestoration()
HistoryScrollRestorationType History::scrollRestorationInternal() const
{
- if (m_frame && RuntimeEnabledFeatures::scrollRestorationEnabled()) {
+ if (m_frame) {
if (HistoryItem* historyItem = m_frame->loader().currentItem())
return historyItem->scrollRestorationType();
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/History.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698