Reduce unnecessary #includes to speed up compilation. r=bryner/sfraser sr=alecf b=64023

This commit is contained in:
dbaron%fas.harvard.edu 2001-01-27 16:58:15 +00:00
parent 08bc27787a
commit 1e046d05c0
27 changed files with 29 additions and 25 deletions

View File

@ -24,7 +24,6 @@
#include "nslayout.h"
#include "nsISupports.h"
#include "nsIUnicharInputStream.h"
#include "nsGUIEvent.h"
#include "nsAWritableString.h"

View File

@ -79,6 +79,7 @@
#include "nsLayoutAtoms.h"
#include "nsIDOMHTMLFrameSetElement.h"
#include "nsIFrameManager.h"
#include "nsIParser.h"
#include "nsIPrintContext.h"
#include "nsIChromeRegistry.h"

View File

@ -50,6 +50,7 @@
#include "nsCOMPtr.h"
#include "nsIStyleSet.h"
#include "nsISizeOfHandler.h"
#include "nsIView.h"
//----------------------------------------------------------------------

View File

@ -30,6 +30,7 @@
#include "nsICSSLoaderObserver.h"
#include "nsIHTMLContent.h"
#include "nsIHTMLContentContainer.h"
#include "nsIUnicharInputStream.h"
#include "nsIURL.h"
#include "nsIStreamLoader.h"
#include "nsNetUtil.h"

View File

@ -71,6 +71,7 @@
#include "nsIScriptSecurityManager.h"
#include "nsJSUtils.h"
#include "nsDOMPropEnums.h"
#include "nsIScrollableView.h"
#include "nsIIOService.h"
#include "nsICookieService.h"

View File

@ -43,6 +43,7 @@
#include "nsIFrame.h"
#include "nsString.h"
#include "nsVoidArray.h"
#include "nsIUnicharInputStream.h"
#include "nsHTMLIIDs.h"
#include "nsIDOMHTMLAnchorElement.h"
#include "nsIDOMHTMLLinkElement.h"

View File

@ -87,6 +87,7 @@
#include "nsIServiceManager.h"
#include "nsIScriptGlobalObjectOwner.h"
#include "nsIScriptSecurityManager.h"
#include "nsIScrollableView.h"
#include "nsISelectionController.h"
#include "nsISelection.h"
#include "nsIFrameSelection.h"

View File

@ -43,6 +43,7 @@
#include "nsINetSupportDialogService.h"
#include "nsIInterfaceRequestor.h"
#include "nsIPrompt.h"
#include "nsIChannel.h"
#include "nsIProfileChangeStatus.h"
// for making the leap from nsIDOMWindowInternal -> nsIPresShell

View File

@ -46,6 +46,7 @@
#include "nsIPresShell.h"
#include "nsIStyleSet.h"
#include "nsIViewManager.h"
#include "nsIScrollableView.h"
#include "nsStyleConsts.h"
#include "nsTableOuterFrame.h"
#include "nsIXMLDocument.h"

View File

@ -79,6 +79,7 @@
#include "nsLayoutAtoms.h"
#include "nsIDOMHTMLFrameSetElement.h"
#include "nsIFrameManager.h"
#include "nsIParser.h"
#include "nsIPrintContext.h"
#include "nsIChromeRegistry.h"

View File

@ -24,7 +24,6 @@
#include "nslayout.h"
#include "nsISupports.h"
#include "nsIUnicharInputStream.h"
#include "nsGUIEvent.h"
#include "nsAWritableString.h"

View File

@ -79,6 +79,7 @@
#include "nsLayoutAtoms.h"
#include "nsIDOMHTMLFrameSetElement.h"
#include "nsIFrameManager.h"
#include "nsIParser.h"
#include "nsIPrintContext.h"
#include "nsIChromeRegistry.h"

View File

@ -50,6 +50,7 @@
#include "nsCOMPtr.h"
#include "nsIStyleSet.h"
#include "nsISizeOfHandler.h"
#include "nsIView.h"
//----------------------------------------------------------------------

View File

@ -30,6 +30,7 @@
#include "nsICSSLoaderObserver.h"
#include "nsIHTMLContent.h"
#include "nsIHTMLContentContainer.h"
#include "nsIUnicharInputStream.h"
#include "nsIURL.h"
#include "nsIStreamLoader.h"
#include "nsNetUtil.h"

View File

@ -71,6 +71,7 @@
#include "nsIScriptSecurityManager.h"
#include "nsJSUtils.h"
#include "nsDOMPropEnums.h"
#include "nsIScrollableView.h"
#include "nsIIOService.h"
#include "nsICookieService.h"

View File

@ -46,6 +46,7 @@
#include "nsIPresShell.h"
#include "nsIStyleSet.h"
#include "nsIViewManager.h"
#include "nsIScrollableView.h"
#include "nsStyleConsts.h"
#include "nsTableOuterFrame.h"
#include "nsIXMLDocument.h"

View File

@ -43,6 +43,7 @@
#include "nsIFrame.h"
#include "nsString.h"
#include "nsVoidArray.h"
#include "nsIUnicharInputStream.h"
#include "nsHTMLIIDs.h"
#include "nsIDOMHTMLAnchorElement.h"
#include "nsIDOMHTMLLinkElement.h"

View File

@ -43,6 +43,7 @@
#include "nsIFrame.h"
#include "nsString.h"
#include "nsVoidArray.h"
#include "nsIUnicharInputStream.h"
#include "nsHTMLIIDs.h"
#include "nsIDOMHTMLAnchorElement.h"
#include "nsIDOMHTMLLinkElement.h"

View File

@ -48,6 +48,7 @@
#include "nsIDocShellTreeItem.h"
#include "nsIDocShellTreeNode.h"
#include "nsIWebNavigation.h"
#include "nsIChannel.h"
/////////////////////////////////////////////////////////////////////////
// nsMsgPrintEngine implementation

View File

@ -41,6 +41,8 @@
#include "nsIPrompt.h"
#include "nsICharsetConverterManager.h"
#include "nsICharsetConverterManager2.h"
#include "nsIChannel.h"
#include "nsIStreamObserver.h"
#include "plbase64.h"
#include "nsMsgI18N.h"

View File

@ -25,7 +25,6 @@
#include "nsIObserver.idl"
%{C++
#include "jsapi.h"
typedef int (*PR_CALLBACK PrefChangedFunc)(const char *, void *);
@ -46,8 +45,6 @@ typedef void (*PrefEnumerationFunc)(const char *, void *);
#define NS_PREF_VALUE_CHANGED 1
%}
[ptr] native JSContext(JSContext);
[ptr] native JSObject(JSObject);
native PrefChangedFunc(PrefChangedFunc);
native PrefEnumerationFunc(PrefEnumerationFunc);

View File

@ -443,9 +443,9 @@ nsHTTPServerListener::OnDataAvailable(nsIChannel* channel,
const char * cp = mHeaderBuffer.GetBuffer() ;
nsCOMPtr<nsIByteArrayInputStream> is;
nsresult rv1 =
NS_NewByteArrayInputStream(getter_AddRefs(is) , strdup(cp) ,
mHeaderBuffer.Length()) ;
nsresult rv1 = NS_NewByteArrayInputStream(getter_AddRefs(is),
nsCRT::strdup(cp),
mHeaderBuffer.Length());
NS_ASSERTION(mResponseDataListener, "No data listener! Did we abort?");
if (NS_SUCCEEDED(rv1) && mResponseDataListener)

View File

@ -22,26 +22,10 @@
#ifndef nsIWebShell_h___
#define nsIWebShell_h___
#include "nsIWidget.h"
#include "nsIParser.h"
#include "nsIScrollableView.h"
#include "nsIContentViewerContainer.h"
#include "nsIChannel.h"
#include "nsIScrollableView.h"
class nsIDOMElement;
class nsIDOMWindowInternal;
class nsIFactory;
//class nsIPostData;
class nsIStreamObserver;
class nsIDocumentLoader;
class nsIDocumentLoaderObserver;
class nsIWebShell;
class nsIWebShellContainer;
class nsIContent;
class nsIURIContentListener;
class nsIDOMDocument;
class nsIChromeEventHandler;
class nsIURI;
// Interface ID for nsIWebShell
#define NS_IWEB_SHELL_IID \

View File

@ -75,6 +75,7 @@
#include "nsIWebNavigation.h"
#include "nsIBaseWindow.h"
#include "nsXPIDLString.h"
#include "nsIViewManager.h"
#include "nsCWebBrowser.h"

View File

@ -34,6 +34,8 @@
// Interfaces needed to be included
#include "nsIDocShellTreeItem.h"
#include "nsIWebProgress.h"
#include "nsIChannel.h"
#include "nsIURI.h"
// CIDs

View File

@ -58,6 +58,7 @@
#include "nsIWindowListener.h"
#include "nsIBaseWindow.h"
#include "nsIWebNavigation.h"
#include "nsIViewManager.h"
#include "nsIDocShell.h"
#include "nsIDocShellTreeItem.h"

View File

@ -22,6 +22,8 @@
#include "nsDynamicMDEF.h"
#include "prinrval.h"
#include "nsCOMPtr.h"
#include "nsIDOMElement.h"
#include "nsIDOMNode.h"