Open Bug 629119 Opened 14 years ago Updated 6 months ago

Reset animations on images when .src is changed (properly)

Categories

(Core :: Graphics: ImageLib, defect)

defect

Tracking

()

People

(Reporter: azakai, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

In bug 594771 we implemented a simple hack for this. But we should fix it in a more proper way and remove that hack. See discussion in that bug for the background.
Depends on: 594771
What does "properly" mean here?  That is, what are you proposing we implement?  ;)
To elaborate, I meant to remove the hack and solve it in a nicer way:

1. A proper interface, without the mNewRequestsWillNeedAnimationReset variable.
2. Might make sense to wait until after bug 625245 (do not track images not yet bound to a tree), and/or the idea mentioned in the previous bug, of having several types of animation consumers. This issue might be simpler after them.
> 1. A proper interface, without the mNewRequestsWillNeedAnimationReset variable.

So just add a boolean argument to nsImageLoadingContent::LoadImage?

Do we have a bug on having different types of animation consumers?
(In reply to comment #3)
> > 1. A proper interface, without the mNewRequestsWillNeedAnimationReset variable.
> 
> So just add a boolean argument to nsImageLoadingContent::LoadImage?
> 

That's good, but I think saving 'whether we need to reset the animation for a request' (as we now do) is a little odd. So I was hoping to find a better way.

> Do we have a bug on having different types of animation consumers?

It might make sense to do this as part of bug 625245 actually. I'll comment there.
Depends on: 625245
QA Contact: imagelib → joe
Yep, this still applies.
QA Contact: joe → imagelib
Severity: normal → S3
See Also: → 1805432
Blocks: 1869444
You need to log in before you can comment on or make changes to this bug.