nsCOMPtr<nsIAtom> defaultStyle = dont_AddRef( NS_NewAtom("default-style") );
nsCOMPtr<nsIAtom> defaultStyle = do_GetAtom("default-style");
XULContentSinkImpl::Init(nsIDocument* aDocument, nsIXULPrototypeDocument* aPrototype){    NS_PRECONDITION(aDocument != nsnull, "null ptr");    if (! aDocument)        return NS_ERROR_NULL_POINTER;        nsresult rv;    mDocument    = getter_AddRefs(NS_GetWeakReference(aDocument));    mPrototype   = aPrototype;    rv = mPrototype->GetURI(getter_AddRefs(mDocumentURL));    if (NS_FAILED(rv)) return rv;    // XXX this presumes HTTP header info is already set in document    // XXX if it isn't we need to set it here...    nsCOMPtr<nsIAtom> defaultStyle = dont_AddRef( NS_NewAtom("default-style") );    if (! defaultStyle)        return NS_ERROR_OUT_OF_MEMORY;    rv = mPrototype->GetHeaderData(defaultStyle, mPreferredStyle);    if (NS_FAILED(rv)) return rv;    // Get the CSS loader from the document so we can load    // stylesheets.    nsCOMPtr<nsIHTMLContentContainer> htmlContainer = do_QueryInterface(aDocument);    NS_ASSERTION(htmlContainer != nsnull, "not an HTML container");    if (! htmlContainer)        return NS_ERROR_UNEXPECTED;    rv = htmlContainer->GetCSSLoader(*getter_AddRefs(mCSSLoader));    if (NS_FAILED(rv)) return rv;    rv = aPrototype->GetNodeInfoManager(getter_AddRefs(mNodeInfoManager));    if (NS_FAILED(rv)) return rv;    mState = eInProlog;    return NS_OK;}