mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
bug# 27172. pnunn r:neeti. restore mime type after delay callback.
This commit is contained in:
parent
ac48964a09
commit
b6a91c50eb
@ -697,13 +697,23 @@ void
|
||||
gif_delay_time_callback(void *closure)
|
||||
{
|
||||
il_container *ic = (il_container*)closure;
|
||||
gif_struct *gs = (gif_struct *)ic->ds;
|
||||
gif_struct *gs = NULL;
|
||||
|
||||
if((ic)&&(ic->ds))
|
||||
gs = (gif_struct *)ic->ds;
|
||||
else
|
||||
return; //error
|
||||
|
||||
PR_ASSERT(gs->state == gif_delay);
|
||||
|
||||
gs->delay_timeout = NULL;
|
||||
PR_ASSERT(gs->state == gif_delay);
|
||||
gs->delay_timeout = NULL;
|
||||
|
||||
if (gs->ic->state == IC_ABORT_PENDING)
|
||||
if(gs->ic)
|
||||
gs->ic->type = nsCRT::strdup("image/gif"); //mime string
|
||||
else
|
||||
return; //error
|
||||
|
||||
if (gs->ic->state == IC_ABORT_PENDING)
|
||||
return;
|
||||
|
||||
gs->delay_time = 0; /* Reset for next image */
|
||||
|
Loading…
Reference in New Issue
Block a user