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 {