On 11/19/10 3:04 PM, Charles Pritchard wrote: > Mozilla: > window.QueryInterface(Components.interfaces.nsIInterfaceRequestor).getInterface(Components.interfaces.nsIDOMWindowUtils).screenPixelsPerCSSPixel Note that if you try to do this in a web page, it will throw. That entire interface is mostly for test-automation methods. We (Mozilla) have no plans to expose screen pixels to untrusted content at the moment, more or less as a policy decision. Why do you need this information, exactly? > Moz has animation hooks: > window.mozAnimationStartTime > window.addEventListener("MozBeforePaint") > window.mozRequestAnimationFrame() That's wholly unrelated to screen pixels, yes? -BorisReceived on Friday, 19 November 2010 13:42:47 UTC
This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:28 UTC