Re: How to get the primaryshell/widget from nsIDocument* with Gecko SDK 2.0
Boris Zbarsky <[email protected]> Mon, 14 Feb 2011 09:14:04 -0500
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
On 2/14/11 9:04 AM, Madhu Tadiparthi wrote: > Now I am trying > to make it work for Gecko SDK 2.0 and I have seen that getPrimaryShell() is > no more supported in the SDK 2.0 and I used getShell() instead but it is > returning NULL pointer. That means the document has no presshell at the point when you make the call. This is a perfectly normal condition for a document to be in. -Boris