mDocument = nsnull;
XULContentSinkImpl::DidBuildModel(PRInt32 aQualityLevel){#if FIXME    // XXX this is silly; who cares?    PRInt32 i, ns = mDocument->GetNumberOfShells();    for (i = 0; i < ns; i++) {        nsIPresShell* shell = mDocument->GetShellAt(i);        if (nsnull != shell) {            nsIViewManager* vm;            shell->GetViewManager(&vm);            if(vm) {                vm->SetQuality(nsContentQuality(aQualityLevel));            }            NS_RELEASE(vm);            NS_RELEASE(shell);        }    }#endif    nsCOMPtr<nsIDocument> doc = do_QueryReferent(mDocument);    if (doc) {        doc->EndLoad();    }    // Drop our reference to the parser to get rid of a circular    // reference.    NS_IF_RELEASE(mParser);    return NS_OK;}