[EMAIL PROTECTED] wrote: > But in firefox 3 code, I don't see a function NSTwipsToIntPixels. > Please tell me what should I do in Firefox 3 for the above code.
I think you want to use a combination of the following functions from http://mxr.mozilla.org/seamonkey/source/layout/base/nsPresContext.h This: 529 nscoord TwipsToAppUnits(PRInt32 aTwips) const and one of these: 512 PRInt32 AppUnitsToDevPixels(nscoord aAppUnits) const 497 static PRInt32 AppUnitsToIntCSSPixels(nscoord aAppUnits) I'm not sure if you're looking for CSS pixels or device pixels (or which type Firefox 2 returned from the function you referenced), so I'm not sure which of the latter two functions you want. ~Daniel _______________________________________________ dev-tech-layout mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-layout

