Fixed <rdar://problem/3951911> REGRESSION: Animated GIF images with loop counts...
authorrjw <rjw@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Jan 2005 22:13:04 +0000 (22:13 +0000)
committerrjw <rjw@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Jan 2005 22:13:04 +0000 (22:13 +0000)
Draw last image after animation loop terminates.  (We
were drawing the image at index+1, which doesn't exist!)

        Reviewed by Darin.

        * WebCoreSupport.subproj/WebImageData.m:
        (-[WebImageData _nextFrame:]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8365 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/ChangeLog
WebKit/WebCoreSupport.subproj/WebImageData.m

index 2db196145962dd1ed9cd49118be223af57d7b45e..f250040130f33b7bc7dfa5d05ddc4208b2e75a3c 100644 (file)
@@ -1,3 +1,15 @@
+2005-01-13  Richard Williamson   <rjw@apple.com>
+
+       Fixed <rdar://problem/3951911> REGRESSION: Animated GIF images with loop counts no longer update
+
+       Draw last image after animation loop terminates.  (We
+       were drawing the image at index+1, which doesn't exist!)
+
+        Reviewed by Darin.
+
+        * WebCoreSupport.subproj/WebImageData.m:
+        (-[WebImageData _nextFrame:]):
+
 2005-01-13  Richard Williamson   <rjw@apple.com>
 
        Fixed <rdar://problem/3952084> REGRESSION: Links at projectseven.com now draw and update incorrectly during hover
index cdfdc3a84a95aa379594fa765b653dc39e155876..f348c08d9f87e56500fe7ac3a9b5665e942e589d 100644 (file)
@@ -754,6 +754,7 @@ static NSMutableSet *activeAnimations;
         repetitionsComplete += 1;
         if ([self _repetitionCount] && repetitionsComplete >= [self _repetitionCount]) {
             animationFinished = YES;
+           currentFrame--;
             return;
         }
         currentFrame = 0;