Title: [91960] trunk/Source/WebCore
Revision
91960
Author
[email protected]
Date
2011-07-28 17:02:30 -0700 (Thu, 28 Jul 2011)

Log Message

Fixed gif animation dependency on system time
https://bugs.webkit.org/show_bug.cgi?id=64996

Patch by Devdatta Deshpande <[email protected]> on 2011-07-28
Reviewed by James Robinson.

Test: Load WebCore/manual-tests/animated-gif-looping.html
Change system time to a time in past

* platform/graphics/BitmapImage.cpp:
(WebCore::BitmapImage::startAnimation): Bitmap animation is now based
on monotonicallyIncreasingTime instead of currentTime

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (91959 => 91960)


--- trunk/Source/WebCore/ChangeLog	2011-07-28 23:56:27 UTC (rev 91959)
+++ trunk/Source/WebCore/ChangeLog	2011-07-29 00:02:30 UTC (rev 91960)
@@ -1,3 +1,17 @@
+2011-07-28  Devdatta Deshpande  <[email protected]>
+
+        Fixed gif animation dependency on system time
+        https://bugs.webkit.org/show_bug.cgi?id=64996
+
+        Reviewed by James Robinson.
+
+        Test: Load WebCore/manual-tests/animated-gif-looping.html
+        Change system time to a time in past
+
+        * platform/graphics/BitmapImage.cpp:
+        (WebCore::BitmapImage::startAnimation): Bitmap animation is now based
+        on monotonicallyIncreasingTime instead of currentTime
+
 2011-07-28  Luke Zarko  <[email protected]>
 
         V8 should correctly serialize Boolean, Number and String objects.

Modified: trunk/Source/WebCore/platform/graphics/BitmapImage.cpp (91959 => 91960)


--- trunk/Source/WebCore/platform/graphics/BitmapImage.cpp	2011-07-28 23:56:27 UTC (rev 91959)
+++ trunk/Source/WebCore/platform/graphics/BitmapImage.cpp	2011-07-29 00:02:30 UTC (rev 91960)
@@ -308,7 +308,7 @@
         return;
 
     // If we aren't already animating, set now as the animation start time.
-    const double time = currentTime();
+    const double time = monotonicallyIncreasingTime();
     if (!m_desiredFrameStartTime)
         m_desiredFrameStartTime = time;
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to