On Apr 22, 9:58 pm, Boris Zbarsky <[EMAIL PROTECTED]> wrote:
> Jonathan wrote:
> > i would like to get the width/height attribute of the HTMLImageElement
> > inside nsImageFrame.
>
> OK.
>
> > So the only way i can see doing that is to cast nsGenericHtmlElement
> > and call 'GetAttr()'
>
> You can call GetAttr on nsIContent*, no?
>
> -Boris

Thank you.

I tried this:

 nsAutoString width;

            mContent->GetAttr(kNameSpaceID_None, nsHTMLAtoms::width,
width);

Can you please tell me how can i convert 'nsAutoString' to an integer?

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

Reply via email to