Here is the GetDOM function implementation as well...
NS_IMETHODIMP CBrowserImpl::GetDOM(nsIDOMDocument* doc)
{
nsCOMPtr<nsIDOMWindow> window;
nsCOMPtr<nsIDOMDocument> ndoc = (nsCOMPtr<nsIDOMDocument>)doc;
mWebBrowser->GetContentDOMWindow(getter_AddRefs(window));
if (window) {
window->GetDocument(getter_AddRefs(ndoc));
}
return NS_OK;
}
_______________________________________________
mozilla-embedding mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-embedding
