From fb9f42cbfb1b014fe33a668b6cbe1e2e182b1b94 Mon Sep 17 00:00:00 2001 From: "hpradhan%hotpop.com" Date: Thu, 25 Dec 2003 10:30:48 +0000 Subject: [PATCH] bug 229183 : Eliminate an unnecessary QI r+sr=jst git-svn-id: svn://10.0.0.236/trunk@150730 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/html/document/src/nsHTMLDocument.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mozilla/content/html/document/src/nsHTMLDocument.cpp b/mozilla/content/html/document/src/nsHTMLDocument.cpp index 8ae21c69307..e51b33f7360 100644 --- a/mozilla/content/html/document/src/nsHTMLDocument.cpp +++ b/mozilla/content/html/document/src/nsHTMLDocument.cpp @@ -74,7 +74,6 @@ #include "nsIContentViewer.h" #include "nsIMarkupDocumentViewer.h" #include "nsIDocShell.h" -#include "nsIWebShell.h" #include "nsIDocShellTreeItem.h" #include "nsIWebNavigation.h" #include "nsIBaseWindow.h" @@ -990,11 +989,10 @@ nsHTMLDocument::StartDocumentLoad(const char* aCommand, sink = aSink; else { if (IsXHTML()) { - nsCOMPtr webShell(do_QueryInterface(aContainer)); nsCOMPtr xmlsink; rv = NS_NewXMLContentSink(getter_AddRefs(xmlsink), this, aURL, - webShell, aChannel); + docShell, aChannel); sink = xmlsink; } else {