Jonathan wrote: > Can you please tell me how can i convert 'nsAutoString' to an integer?
Have you considered looking at the string headers? That said, I highly doubt that you want to be doing that, because you'd want to _exactly_ duplicate the parsing algorithm that image nodes use. It might make more sense to get naturalWidth if that's what you want. That'll work for <img>. For <input type="image"> you'd be more or less out of luck with this approach. Of course you can also QI to nsIImageLoadingContent, get the imgIContainer or whatever has the size, and go from there... -Boris _______________________________________________ dev-tech-layout mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-layout

