Remove animation hrottling that we don't want.
Bug 386269, patch by tor and Alfred Kayser <alfredkayser@nl.ibm.com>, r=pavlov, sr=tor
Remove animation hrottling that we don't want.
Bug 386269, patch by tor and Alfred Kayser <alfredkayser@nl.ibm.com>, r=pavlov, sr=tor
--- 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 {