Title: [97902] trunk/Source/WebCore
Revision
97902
Author
[email protected]
Date
2011-10-19 17:44:28 -0700 (Wed, 19 Oct 2011)

Log Message

[chromium] Shorten animation time for ZoomAnimator.
https://bugs.webkit.org/show_bug.cgi?id=70419

Reviewed by Kenneth Russell.

Shorten animation time for ZoomAnimator.

Existing test coverage sufficient.

* platform/ScrollAnimatorNone.cpp:
(WebCore::ScrollAnimatorNone::zoom):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (97901 => 97902)


--- trunk/Source/WebCore/ChangeLog	2011-10-20 00:35:07 UTC (rev 97901)
+++ trunk/Source/WebCore/ChangeLog	2011-10-20 00:44:28 UTC (rev 97902)
@@ -1,3 +1,17 @@
+2011-10-19  W. James MacLean  <[email protected]>
+
+        [chromium] Shorten animation time for ZoomAnimator.
+        https://bugs.webkit.org/show_bug.cgi?id=70419
+
+        Reviewed by Kenneth Russell.
+
+        Shorten animation time for ZoomAnimator.
+
+        Existing test coverage sufficient.
+
+        * platform/ScrollAnimatorNone.cpp:
+        (WebCore::ScrollAnimatorNone::zoom):
+
 2011-10-19  Zhenyao Mo  <[email protected]>
 
         Implement WEBGL_debug_shaders and WEBGL_debug_renderer_info extensions

Modified: trunk/Source/WebCore/platform/ScrollAnimatorNone.cpp (97901 => 97902)


--- trunk/Source/WebCore/platform/ScrollAnimatorNone.cpp	2011-10-20 00:35:07 UTC (rev 97901)
+++ trunk/Source/WebCore/platform/ScrollAnimatorNone.cpp	2011-10-20 00:44:28 UTC (rev 97902)
@@ -55,6 +55,7 @@
 static double kFrameRate = 60;
 static double kTickTime = 1 / kFrameRate;
 static double kMinimumTimerInterval = .001;
+static double kZoomTicks = 11;
 
 PassOwnPtr<ScrollAnimator> ScrollAnimator::create(ScrollableArea* scrollableArea)
 {
@@ -496,7 +497,7 @@
         }
 #endif
         m_zoomData.m_lastAnimationTime = currentTime;
-        m_zoomData.m_animationTime = 50 * kTickTime;
+        m_zoomData.m_animationTime = kZoomTicks * kTickTime;
 
         bool isContinuing = m_zoomData.animateZoom(currentTime);
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to