Remove animation hrottling that we don't want. Bug 386269, patch by tor and Alfred Kayser <alfredkayser@nl.ibm.com>, r=pavlov, sr=tor
authorbzbarsky@mit.edu
Wed, 08 Aug 2007 09:32:57 -0700
changeset 4392 8002b68ce288f4ca6af45b044266733d3b1061f8
parent 4391 70efd2a6a3cab1e554402bdd6ed49ead1cc7e640
child 4393 62a045bbfcdbf62e46bddc171b1a558385fa7031
push id1
push userbsmedberg@mozilla.com
push dateThu, 20 Mar 2008 16:49:24 +0000
treeherdermozilla-central@61007906a1f8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspavlov, tor
bugs386269
milestone1.9a8pre
Remove animation hrottling that we don't want. Bug 386269, patch by tor and Alfred Kayser <alfredkayser@nl.ibm.com>, r=pavlov, sr=tor
modules/libpr0n/decoders/gif/GIF2.h
modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp
--- a/modules/libpr0n/decoders/gif/GIF2.h
+++ b/modules/libpr0n/decoders/gif/GIF2.h
@@ -34,17 +34,16 @@
  * the terms of any one of the MPL, the GPL or the LGPL.
  *
  * ***** END LICENSE BLOCK ***** */
 #ifndef _GIF_H_
 #define _GIF_H_
 
 #define MAX_LZW_BITS          12
 #define MAX_BITS            4097 /* 2^MAX_LZW_BITS+1 */
-#define MINIMUM_DELAY_TIME   100
 #define MAX_COLORS           256
 #define MAX_HOLD_SIZE        256
 
 /* gif2.h  
    The interface for the GIF87/89a decoder. 
 */
 // List of possible parsing states
 typedef enum {
--- a/modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp
+++ b/modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp
@@ -332,21 +332,16 @@ void nsGIFDecoder2::BeginImageFrame()
       mObserver->OnDataAvailable(nsnull, mImageFrame, &r);
     }
   }
 }
 
 //******************************************************************************
 void nsGIFDecoder2::EndImageFrame()
 {
-  // An image can specify a delay time before which to display
-  // subsequent images.
-  if (mGIFStruct.delay_time < MINIMUM_DELAY_TIME)
-    mGIFStruct.delay_time = MINIMUM_DELAY_TIME;
-
   mGIFStruct.images_decoded++;
 
   // If mImageFrame hasn't been initialized, call HaveDecodedRow to init it
   // One reason why it may not be initialized is because the frame
   // is out of the bounds of the image.
   if (!mImageFrame) {
     HaveDecodedRow(nsnull,0,0,0);
   } else {