Index: Source/WebCore/platform/ScrollAnimatorNone.cpp |
diff --git a/Source/WebCore/platform/ScrollAnimatorNone.cpp b/Source/WebCore/platform/ScrollAnimatorNone.cpp |
index 2442a962ab25101d90205f4e4db86dfd5ebbcd89..a70fe489bce4b1309e06353f7354b3616cc3d9c7 100644 |
--- a/Source/WebCore/platform/ScrollAnimatorNone.cpp |
+++ b/Source/WebCore/platform/ScrollAnimatorNone.cpp |
@@ -399,7 +399,6 @@ ScrollAnimatorNone::~ScrollAnimatorNone() |
ScrollAnimatorNone::Parameters ScrollAnimatorNone::parametersForScrollGranularity(ScrollGranularity granularity) const |
{ |
-#if !PLATFORM(QT) |
switch (granularity) { |
case ScrollByDocument: |
return Parameters(true, 20 * kTickTime, 10 * kTickTime, Cubic, 10 * kTickTime, Cubic, 10 * kTickTime, Linear, 1); |
@@ -412,22 +411,6 @@ ScrollAnimatorNone::Parameters ScrollAnimatorNone::parametersForScrollGranularit |
default: |
ASSERT_NOT_REACHED(); |
} |
-#else |
- // This is a slightly different strategy for the animation with a steep attack curve and natural release curve. |
- // The fast acceleration makes the animation look more responsive to user input. |
- switch (granularity) { |
- case ScrollByDocument: |
- return Parameters(true, 20 * kTickTime, 10 * kTickTime, Cubic, 6 * kTickTime, Quadratic, 10 * kTickTime, Quadratic, 22 * kTickTime); |
- case ScrollByLine: |
- return Parameters(true, 6 * kTickTime, 5 * kTickTime, Cubic, 1 * kTickTime, Quadratic, 4 * kTickTime, Linear, 1); |
- case ScrollByPage: |
- return Parameters(true, 12 * kTickTime, 10 * kTickTime, Cubic, 3 * kTickTime, Quadratic, 6 * kTickTime, Linear, 1); |
- case ScrollByPixel: |
- return Parameters(true, 8 * kTickTime, 3 * kTickTime, Cubic, 2 * kTickTime, Quadratic, 5 * kTickTime, Quadratic, 1.25); |
- default: |
- ASSERT_NOT_REACHED(); |
- } |
-#endif |
return Parameters(); |
} |