Re: how to get nsIPresShe​ll interface

Boris Zbarsky <[email protected]> Mon, 30 May 2011 16:22:35 -0400
Newsgroups gmane.comp.mozilla.devel.embedding
Message-ID <[email protected]>
On 5/30/11 4:08 AM, Pit M. wrote:
> what i have is a nsIWebBrowser or nsIDOMWindow or nsiDocument
> interfaces but none of them helps me getting nsIPresShell

nsIDocument has a getter that hands back a presshell, fwiw.

You can also getInterface a presshell from a docshell.

-Boris