Changed references to nsIContentViewerContainer to nsISupports in the march to get rid of nsIContentViewerContainer. r=pavlov

git-svn-id: svn://10.0.0.236/trunk@53492 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
tbogard%aol.net
1999-11-15 07:29:23 +00:00
parent a5283d2178
commit 3332c74e48
20 changed files with 157 additions and 310 deletions

View File

@@ -953,7 +953,7 @@ nsWebShell::Init(nsNativeWidget aNativeParent,
}
// Set the webshell as the default IContentViewerContainer for the loader...
mDocLoader->SetContainer(this);
mDocLoader->SetContainer(NS_STATIC_CAST(nsIContentViewerContainer*, this));
//Register ourselves as an observer for the new doc loader
mDocLoader->AddObserver((nsIDocumentLoaderObserver*)this);
@@ -1858,7 +1858,7 @@ nsWebShell::SetDocument(nsIDOMDocument *aDOMDoc, nsIDOMElement *aRootNode)
nsCOMPtr<nsIDocument> doc = do_QueryInterface(aDOMDoc);
if (!doc) { return NS_ERROR_NULL_POINTER; }
NS_ENSURE_SUCCESS(docFactory->CreateInstanceForDocument(this,
NS_ENSURE_SUCCESS(docFactory->CreateInstanceForDocument(NS_STATIC_CAST(nsIContentViewerContainer*, this),
doc,
"view",
getter_AddRefs(documentViewer)),
@@ -2130,7 +2130,7 @@ nsWebShell::DoLoadURL(nsIURI * aUri,
*/
rv = mDocLoader->LoadDocument(aUri, // URL string
aCommand, // Command
this, // Container
NS_STATIC_CAST(nsIContentViewerContainer*, this),// Container
aPostDataStream, // Post Data
nsnull, // Extra Info...
aType, // reload type