mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 08:15:31 +00:00
bug 229183 : Eliminate an unnecessary QI r+sr=jst
This commit is contained in:
parent
ab67185554
commit
1f6e3ca078
@ -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<nsIWebShell> webShell(do_QueryInterface(aContainer));
|
||||
nsCOMPtr<nsIXMLContentSink> xmlsink;
|
||||
|
||||
rv = NS_NewXMLContentSink(getter_AddRefs(xmlsink), this, aURL,
|
||||
webShell, aChannel);
|
||||
docShell, aChannel);
|
||||
|
||||
sink = xmlsink;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user