On Apr 22, 6:01 pm, Boris Zbarsky <[EMAIL PROTECTED]> wrote: > Jonathan wrote: > > How can I cast the mContent in nsImageFrame to nsGenericHTMLElement? > > You shouldn't need to. Why do you think that you need such a cast? > > -Boris > > P.S. The C-style cast you propose can't possibly get you anything but crashes.
i would like to get the width/height attribute of the HTMLImageElement inside nsImageFrame. So the only way i can see doing that is to cast nsGenericHtmlElement and call 'GetAttr()' Is there a better way? if yes , please let me know. Thank you. _______________________________________________ dev-tech-layout mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-layout

