nsCOMPtr<nsINameSpaceManager> nsmgr; rv = NS_NewNameSpaceManager(getter_AddRefs(nsmgr)); NS_ENSURE_SUCCESS(rv, rv); rv = mNodeInfoManager->Init(nsnull, nsmgr);
rv = mNodeInfoManager->Init(nsnull);
nsXULPrototypeDocument::Init(){    nsresult rv;    rv = NS_NewISupportsArray(getter_AddRefs(mStyleSheetReferences));    NS_ENSURE_SUCCESS(rv, rv);    rv = NS_NewISupportsArray(getter_AddRefs(mOverlayReferences));    NS_ENSURE_SUCCESS(rv, rv);    mNodeInfoManager = do_CreateInstance(NS_NODEINFOMANAGER_CONTRACTID, &rv);    NS_ENSURE_SUCCESS(rv, rv);    nsCOMPtr<nsINameSpaceManager> nsmgr;    rv = NS_NewNameSpaceManager(getter_AddRefs(nsmgr));    NS_ENSURE_SUCCESS(rv, rv);    rv = mNodeInfoManager->Init(nsnull, nsmgr);    NS_ENSURE_SUCCESS(rv, rv);    return NS_OK;}