Index: Source/core/testing/InternalSettings.cpp |
diff --git a/Source/core/testing/InternalSettings.cpp b/Source/core/testing/InternalSettings.cpp |
index 29e34ec43d4acea605ea4161b3a9e3c11a05d941..768a0658a4a6860bbd55272d36e1a021ffce9cdf 100644 |
--- a/Source/core/testing/InternalSettings.cpp |
+++ b/Source/core/testing/InternalSettings.cpp |
@@ -182,6 +182,12 @@ void InternalSettings::setTouchEventEmulationEnabled(bool enabled, ExceptionStat |
settings()->setTouchEventEmulationEnabled(enabled); |
} |
+void InternalSettings::setViewportEnabled(bool enabled, ExceptionState& es) |
+{ |
+ InternalSettingsGuardForSettings(); |
+ settings()->setViewportEnabled(enabled); |
+} |
+ |
// FIXME: This is a temporary flag and should be removed once accelerated |
// overflow scroll is ready (crbug.com/254111). |
void InternalSettings::setCompositorDrivenAcceleratedScrollingEnabled(bool enabled, ExceptionState& es) |