summaryrefslogtreecommitdiff
path: root/Source/WebCore/testing/InternalSettings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/testing/InternalSettings.cpp')
-rw-r--r--Source/WebCore/testing/InternalSettings.cpp51
1 files changed, 0 insertions, 51 deletions
diff --git a/Source/WebCore/testing/InternalSettings.cpp b/Source/WebCore/testing/InternalSettings.cpp
index c2b045dca..2884e5661 100644
--- a/Source/WebCore/testing/InternalSettings.cpp
+++ b/Source/WebCore/testing/InternalSettings.cpp
@@ -36,14 +36,6 @@
#include "Page.h"
#include "Settings.h"
-#if ENABLE(GESTURE_EVENTS)
-#include "PlatformGestureEvent.h"
-#endif
-
-#if ENABLE(SMOOTH_SCROLLING)
-#include "ScrollAnimator.h"
-#endif
-
#if ENABLE(INPUT_COLOR)
#include "ColorChooser.h"
#endif
@@ -172,43 +164,6 @@ void InternalSettings::setAcceleratedDrawingEnabled(bool enabled, ExceptionCode&
settings()->setAcceleratedDrawingEnabled(enabled);
}
-void InternalSettings::setEnableScrollAnimator(bool enabled, ExceptionCode& ec)
-{
- InternalSettingsGuardForSettings();
-#if ENABLE(SMOOTH_SCROLLING)
- settings()->setEnableScrollAnimator(enabled);
-#else
- UNUSED_PARAM(enabled);
-#endif
-}
-
-void InternalSettings::setZoomAnimatorTransform(float scale, float tx, float ty, ExceptionCode& ec)
-{
- InternalSettingsGuardForFrame();
-
-#if ENABLE(GESTURE_EVENTS)
- PlatformGestureEvent pge(PlatformEvent::GestureDoubleTap, IntPoint(tx, ty), IntPoint(tx, ty), 0, scale, 0.f, 0, 0, 0, 0);
- frame()->eventHandler()->handleGestureEvent(pge);
-#else
- UNUSED_PARAM(scale);
- UNUSED_PARAM(tx);
- UNUSED_PARAM(ty);
-#endif
-}
-
-void InternalSettings::setZoomParameters(float scale, float x, float y, ExceptionCode& ec)
-{
- InternalSettingsGuardForFrameView();
-
-#if ENABLE(SMOOTH_SCROLLING)
- frame()->view()->scrollAnimator()->setZoomParametersForTest(scale, x, y);
-#else
- UNUSED_PARAM(scale);
- UNUSED_PARAM(x);
- UNUSED_PARAM(y);
-#endif
-}
-
void InternalSettings::setMockScrollbarsEnabled(bool enabled, ExceptionCode& ec)
{
InternalSettingsGuardForSettings();
@@ -253,12 +208,6 @@ bool InternalSettings::unifiedTextCheckingEnabled(ExceptionCode& ec)
return settings()->unifiedTextCheckerEnabled();
}
-float InternalSettings::pageScaleFactor(ExceptionCode& ec)
-{
- InternalSettingsGuardForPageReturn(0);
- return page()->pageScaleFactor();
-}
-
void InternalSettings::setPageScaleFactor(float scaleFactor, int x, int y, ExceptionCode& ec)
{
InternalSettingsGuardForPage();