rv = doc->StartDocumentLoad(aCommand, aChannel, aLoadGroup, aContainer, aDocListener, PR_TRUE); if (NS_SUCCEEDED(rv)) {  rv = docv->BindToDocument(doc, aCommand); *aDocViewer = docv; NS_IF_ADDREF(*aDocViewer); }  return rv;
rv = NS_NewDocumentViewer(getter_AddRefs(*docv)); if (NS_FAILED(rv)) return rv;   (*docv)->SetUAStyleSheet(nsContentDLF::GetUAStyleSheet());  return NS_OK;
nsContentDLF::CreateRDFDocument(const char* aCommand,                               nsIChannel* aChannel,                               nsILoadGroup* aLoadGroup,                               const char* aContentType,                               nsISupports* aContainer,                               nsISupports* aExtraInfo,                               nsIStreamListener** aDocListener,                               nsIContentViewer** aDocViewer){  nsCOMPtr<nsIDocument> doc;  nsCOMPtr<nsIDocumentViewer> docv;  nsresult rv = CreateRDFDocument(aExtraInfo, address_of(doc), address_of(docv));  if (NS_FAILED(rv)) {    return rv;  }  nsCOMPtr<nsIURI> aURL;  rv = aChannel->GetURI(getter_AddRefs(aURL));  if (NS_FAILED(rv)) return rv;  /*    * Initialize the document to begin loading the data...   *   * An nsIStreamListener connected to the parser is returned in   * aDocListener.   */  rv = doc->StartDocumentLoad(aCommand, aChannel, aLoadGroup, aContainer, aDocListener, PR_TRUE);  if (NS_SUCCEEDED(rv)) {    /*     * Bind the document to the Content Viewer...     */    rv = docv->BindToDocument(doc, aCommand);    *aDocViewer = docv;    NS_IF_ADDREF(*aDocViewer);  }     return rv;}