More massaging to allow for XML docs with no webshells.

This commit is contained in:
hyatt%netscape.com 2000-01-12 10:50:02 +00:00
Родитель 9523941284
Коммит 66b5edddeb
2 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -207,7 +207,7 @@ nsXMLDocument::StartDocumentLoad(const char* aCommand,
return rv;
}
nsIWebShell* webShell;
nsIWebShell* webShell = nsnull;
nsAutoString charset("UTF-8");
nsCharsetSource charsetSource = kCharsetFromDocTypeDefault;
@ -263,7 +263,8 @@ nsXMLDocument::StartDocumentLoad(const char* aCommand,
if (NS_OK == rv) {
nsIXMLContentSink* sink;
rv = aContainer->QueryInterface(kIWebShellIID, (void**)&webShell);
if (aContainer)
rv = aContainer->QueryInterface(kIWebShellIID, (void**)&webShell);
if(NS_SUCCEEDED(rv) && (nsnull != webShell)) {
nsCOMPtr<nsIContentViewer> cv;

Просмотреть файл

@ -207,7 +207,7 @@ nsXMLDocument::StartDocumentLoad(const char* aCommand,
return rv;
}
nsIWebShell* webShell;
nsIWebShell* webShell = nsnull;
nsAutoString charset("UTF-8");
nsCharsetSource charsetSource = kCharsetFromDocTypeDefault;
@ -263,7 +263,8 @@ nsXMLDocument::StartDocumentLoad(const char* aCommand,
if (NS_OK == rv) {
nsIXMLContentSink* sink;
rv = aContainer->QueryInterface(kIWebShellIID, (void**)&webShell);
if (aContainer)
rv = aContainer->QueryInterface(kIWebShellIID, (void**)&webShell);
if(NS_SUCCEEDED(rv) && (nsnull != webShell)) {
nsCOMPtr<nsIContentViewer> cv;