remove some unneeded REQUIRES from chardet

261029 r=jshin sr=bz
This commit is contained in:
cbiesinger%web.de 2004-09-30 14:27:33 +00:00
Родитель 795c362196
Коммит 9dcc5e779c
3 изменённых файлов: 24 добавлений и 37 удалений

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

@ -51,13 +51,10 @@ REQUIRES = xpcom \
uconv \
unicharutil \
webshell \
docshell \
htmlparser \
necko \
widget \
content \
dom \
embedcomponents \
$(NULL)
CPPSRCS = \

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

@ -44,7 +44,6 @@
#include "nsISupports.h"
#include "nsCRT.h"
#include "nsIParser.h"
#include "nsIAppStartupNotifier.h"
#include "pratom.h"
#include "nsCharDetDll.h"
#include "nsIServiceManager.h"

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

@ -39,12 +39,9 @@
#include "nsIServiceManager.h"
#include "nsIWebShellServices.h"
#include "nsIContentViewerContainer.h"
#include "nsObserverBase.h"
#include "nsString.h"
#include "nsIDocShell.h"
#include "nsIHttpChannel.h"
#include "nsXPIDLString.h"
@ -58,22 +55,17 @@ NS_IMETHODIMP nsObserverBase::NotifyWebShell(nsISupports* aWebShell,
nsresult rv = NS_OK;
nsresult res = NS_OK;
nsCOMPtr<nsIChannel> channel(do_QueryInterface(aChannel,&res));
if (NS_SUCCEEDED(res)) {
nsCOMPtr<nsIHttpChannel> httpChannel(do_QueryInterface(channel,&res));
nsCOMPtr<nsIHttpChannel> httpChannel(do_QueryInterface(aChannel,&res));
if (NS_SUCCEEDED(res)) {
nsCAutoString method;
httpChannel->GetRequestMethod(method);
if (method.Equals(NS_LITERAL_CSTRING("POST"), nsCaseInsensitiveCStringComparator())) {
if (method.EqualsLiteral("POST")) { // XXX What about PUT, etc?
return NS_OK;
}
}
}
nsCOMPtr<nsIDocShell> docshell(do_QueryInterface(aWebShell,&res));
if (NS_SUCCEEDED(res)) {
nsCOMPtr<nsIWebShellServices> wss;
wss = do_QueryInterface(docshell,&res); // Query webshell service through docshell.
wss = do_QueryInterface(aWebShell,&res);
if (NS_SUCCEEDED(res)) {
#ifndef DONT_INFORM_WEBSHELL
@ -94,7 +86,6 @@ NS_IMETHODIMP nsObserverBase::NotifyWebShell(nsISupports* aWebShell,
}
#endif
}
}
//if our reload request is not accepted, we should tell parser to go on
if (rv != NS_ERROR_HTMLPARSER_STOPPARSING)