I am working on a browser extension dealing with animated images, and
would like to be able to start and stop their animation on an
individual basis.  The <nsIImageLoadingContent> interface seems to
provide the functionality I need (through <imgIRequest> and
<imgIContainer>).

So here are my questions: is <nsIImageLoadingContent> the best way to
achieve what I want?  If not, then what is?  If so, then how do I get
to <nsIImageLoadingContent> from a given <nsIDOMElement>
(<nsIDOMHTMLImageElement>, <nsIDOMHTMLInputElement> [type="image"],
<nsIDOMHTMLObjectElement>, etc.) and its containing <nsIDOMDocument>
ownerDocument?

I prefer a JavaScript solution, but would be willing to dive into C++
if necessary, and I have no problem with using (and adjusting with
changes to) unfrozen interfaces.  I am very new to XPCOM, but I am
learning it quickly.  Thanks in advance for the help and/or references.

_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to