Re: How to get the primaryshell/widget from nsIDocument* with Gecko SDK 2.0

"K.V" <[email protected]> Thu, 17 Feb 2011 05:53:09 -0800 (PST)
Newsgroups gmane.comp.mozilla.devel.dom
Organization http://groups.google.com
Message-ID <[email protected]>
Thanks for the quick reply.
I wrote an extension for Firefox, there I need to interact with the
controls. For that I tried to get the dimensions of the controls.  I
used getWidget() on the nsIDocument* as mentioned in the sample code
to get the Screen Offset values (using WidgetToScreenOffset()). This
worked properly till Firefox3.6 version but not with Firefox 4.0
version.

I am looking to find the document Screen offset dimensions (for
visible block), which I can use to find the bounds of the internal
controls.

-KV