Index: Source/core/testing/InternalSettings.cpp |
diff --git a/Source/core/testing/InternalSettings.cpp b/Source/core/testing/InternalSettings.cpp |
index 8797c6169da024ad4bb7f805d0e30edb3ec11d75..bf1b54c9edb1cd82c76e1ac37f558771cefd6ab1 100644 |
--- a/Source/core/testing/InternalSettings.cpp |
+++ b/Source/core/testing/InternalSettings.cpp |
@@ -218,8 +218,13 @@ void InternalSettings::setStyleScopedEnabled(bool enabled) |
void InternalSettings::setTouchEventEmulationEnabled(bool enabled, ExceptionCode& ec) |
{ |
+#if ENABLE(TOUCH_EVENTS) |
InternalSettingsGuardForSettings(); |
settings()->setTouchEventEmulationEnabled(enabled); |
+#else |
+ UNUSED_PARAM(enabled); |
+ UNUSED_PARAM(ec); |
+#endif |
} |
typedef void (Settings::*SetFontFamilyFunction)(const AtomicString&, UScriptCode); |