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

Unified Diff: Source/web/WebSettingsImpl.cpp

Issue 1356113002: Make window.scroll properties relative to the layout viewport. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rename settings flag and improved tests Created 5 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
Index: Source/web/WebSettingsImpl.cpp
diff --git a/Source/web/WebSettingsImpl.cpp b/Source/web/WebSettingsImpl.cpp
index 098fd4f3f90fcec763683f90c10774ed991a7458..0d1f58affc36d264a60a751319d68946cc906413 100644
--- a/Source/web/WebSettingsImpl.cpp
+++ b/Source/web/WebSettingsImpl.cpp
@@ -190,6 +190,11 @@ void WebSettingsImpl::setInvertViewportScrollOrder(bool enabled)
m_settings->setInvertViewportScrollOrder(enabled);
}
+void WebSettingsImpl::setInertVisualViewport(bool enabled)
+{
+ m_settings->setInertVisualViewport(enabled);
+}
+
void WebSettingsImpl::setDeviceScaleAdjustment(float deviceScaleAdjustment)
{
m_devToolsEmulator->setDeviceScaleAdjustment(deviceScaleAdjustment);

Powered by Google App Engine
This is Rietveld 408576698