Richard Gibson wrote:
So here are my questions: is <nsIImageLoadingContent> the best way to
achieve what I want?

I believe so, yes.

If so, then how do I get
to <nsIImageLoadingContent> from a given <nsIDOMElement>
(<nsIDOMHTMLImageElement>, <nsIDOMHTMLInputElement> [type="image"],
<nsIDOMHTMLObjectElement>, etc.) and its containing <nsIDOMDocument>
ownerDocument?

element.QueryInterface(Components.interfaces.nsIImageLoadingContent)

I prefer a JavaScript solution

All the interfaces involved should be nicely scriptable.  ;)

and I have no problem with using (and adjusting with
changes to) unfrozen interfaces.

Also shouldn't be a huge issue here... These interfaces are not that likely to undergo massive changes.

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

Reply via email to