mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Reduce unnecessary #includes to speed up compilation. r=bryner/sfraser sr=alecf b=64023
This commit is contained in:
parent
08bc27787a
commit
1e046d05c0
@ -24,7 +24,6 @@
|
||||
|
||||
#include "nslayout.h"
|
||||
#include "nsISupports.h"
|
||||
#include "nsIUnicharInputStream.h"
|
||||
#include "nsGUIEvent.h"
|
||||
#include "nsAWritableString.h"
|
||||
|
||||
|
@ -79,6 +79,7 @@
|
||||
#include "nsLayoutAtoms.h"
|
||||
#include "nsIDOMHTMLFrameSetElement.h"
|
||||
#include "nsIFrameManager.h"
|
||||
#include "nsIParser.h"
|
||||
#include "nsIPrintContext.h"
|
||||
|
||||
#include "nsIChromeRegistry.h"
|
||||
|
@ -50,6 +50,7 @@
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsIStyleSet.h"
|
||||
#include "nsISizeOfHandler.h"
|
||||
#include "nsIView.h"
|
||||
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
@ -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"
|
||||
|
@ -71,6 +71,7 @@
|
||||
#include "nsIScriptSecurityManager.h"
|
||||
#include "nsJSUtils.h"
|
||||
#include "nsDOMPropEnums.h"
|
||||
#include "nsIScrollableView.h"
|
||||
|
||||
#include "nsIIOService.h"
|
||||
#include "nsICookieService.h"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
@ -79,6 +79,7 @@
|
||||
#include "nsLayoutAtoms.h"
|
||||
#include "nsIDOMHTMLFrameSetElement.h"
|
||||
#include "nsIFrameManager.h"
|
||||
#include "nsIParser.h"
|
||||
#include "nsIPrintContext.h"
|
||||
|
||||
#include "nsIChromeRegistry.h"
|
||||
|
@ -24,7 +24,6 @@
|
||||
|
||||
#include "nslayout.h"
|
||||
#include "nsISupports.h"
|
||||
#include "nsIUnicharInputStream.h"
|
||||
#include "nsGUIEvent.h"
|
||||
#include "nsAWritableString.h"
|
||||
|
||||
|
@ -79,6 +79,7 @@
|
||||
#include "nsLayoutAtoms.h"
|
||||
#include "nsIDOMHTMLFrameSetElement.h"
|
||||
#include "nsIFrameManager.h"
|
||||
#include "nsIParser.h"
|
||||
#include "nsIPrintContext.h"
|
||||
|
||||
#include "nsIChromeRegistry.h"
|
||||
|
@ -50,6 +50,7 @@
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsIStyleSet.h"
|
||||
#include "nsISizeOfHandler.h"
|
||||
#include "nsIView.h"
|
||||
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
@ -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"
|
||||
|
@ -71,6 +71,7 @@
|
||||
#include "nsIScriptSecurityManager.h"
|
||||
#include "nsJSUtils.h"
|
||||
#include "nsDOMPropEnums.h"
|
||||
#include "nsIScrollableView.h"
|
||||
|
||||
#include "nsIIOService.h"
|
||||
#include "nsICookieService.h"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -48,6 +48,7 @@
|
||||
#include "nsIDocShellTreeItem.h"
|
||||
#include "nsIDocShellTreeNode.h"
|
||||
#include "nsIWebNavigation.h"
|
||||
#include "nsIChannel.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// nsMsgPrintEngine implementation
|
||||
|
@ -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"
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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 \
|
||||
|
@ -75,6 +75,7 @@
|
||||
#include "nsIWebNavigation.h"
|
||||
#include "nsIBaseWindow.h"
|
||||
#include "nsXPIDLString.h"
|
||||
#include "nsIViewManager.h"
|
||||
|
||||
#include "nsCWebBrowser.h"
|
||||
|
||||
|
@ -34,6 +34,8 @@
|
||||
// Interfaces needed to be included
|
||||
#include "nsIDocShellTreeItem.h"
|
||||
#include "nsIWebProgress.h"
|
||||
#include "nsIChannel.h"
|
||||
#include "nsIURI.h"
|
||||
|
||||
// CIDs
|
||||
|
||||
|
@ -58,6 +58,7 @@
|
||||
#include "nsIWindowListener.h"
|
||||
#include "nsIBaseWindow.h"
|
||||
#include "nsIWebNavigation.h"
|
||||
#include "nsIViewManager.h"
|
||||
|
||||
#include "nsIDocShell.h"
|
||||
#include "nsIDocShellTreeItem.h"
|
||||
|
@ -22,6 +22,8 @@
|
||||
|
||||
#include "nsDynamicMDEF.h"
|
||||
|
||||
#include "prinrval.h"
|
||||
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsIDOMElement.h"
|
||||
#include "nsIDOMNode.h"
|
||||
|
Loading…
Reference in New Issue
Block a user