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

Unified Diff: Source/web/WebSettingsImpl.cpp

Issue 15927026: Enabled using viewport on desktop browsers behind experimental flag (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: WIP Created 7 years, 5 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/WebSettingsImpl.cpp
diff --git a/Source/web/WebSettingsImpl.cpp b/Source/web/WebSettingsImpl.cpp
index 3f6baeea3b619fc031b8c02f2e12ad6d4b9d89cb..cd08b3b69149cecf417b7aeea951b4dfa9fc7126 100644
--- a/Source/web/WebSettingsImpl.cpp
+++ b/Source/web/WebSettingsImpl.cpp
@@ -58,6 +58,7 @@ WebSettingsImpl::WebSettingsImpl(Settings* settings)
, m_doubleTapToZoomEnabled(false)
, m_supportDeprecatedTargetDensityDPI(false)
, m_pinchOverlayScrollbarThickness(0)
+ , m_anchorScrollPositionOnResize(false)
{
ASSERT(settings);
}
@@ -681,4 +682,14 @@ void WebSettingsImpl::setPinchVirtualViewportEnabled(bool enabled)
m_settings->setPinchVirtualViewportEnabled(enabled);
}
+bool WebSettingsImpl::anchorScrollPositionOnResize() const
+{
+ return m_anchorScrollPositionOnResize;
+}
+
+void WebSettingsImpl::setAnchorScrollPositionOnResize(bool enabled)
+{
+ m_anchorScrollPositionOnResize = enabled;
+}
+
} // namespace WebKit

Powered by Google App Engine
This is Rietveld 408576698