Hi,

How can I cast the mContent in nsImageFrame to nsGenericHTMLElement?

The common pattern I see casting is
nsCOMPtr<nsIImageLoadingContent> imageLoader =
do_QueryInterface(mContent);

But I want to case it to a nsGenericHTMLElement. What can i do?
Just c-cast it?
nsGenericHTMLElement* elm = (nsGenericHTMLElement)mContent;

Thank you.
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to