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

Unified Diff: Source/WebCore/platform/ScrollAnimatorNone.cpp

Issue 13529026: Removing a bunch of unused platform code. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix whitespace and compiler error on Mac. Created 7 years, 8 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
« no previous file with comments | « Source/WebCore/platform/SchemeRegistry.cpp ('k') | Source/WebCore/platform/SharedBuffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « Source/WebCore/platform/SchemeRegistry.cpp ('k') | Source/WebCore/platform/SharedBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698