Bug 1053190 - Reduce unnecessary inclusion of nsINode.h in headers; r=ehsan

This commit is contained in:
Aryeh Gregor 2014-08-18 17:44:50 +03:00
parent b6ef649703
commit 4ae55a890c
30 changed files with 43 additions and 26 deletions

View File

@ -7,7 +7,7 @@
#define nsCoreUtils_h_
#include "nsIContent.h"
#include "nsIDocument.h"
#include "nsIDocument.h" // for GetShell()
#include "nsIPresShell.h"
#include "nsPoint.h"

View File

@ -7,8 +7,8 @@
#define nsCopySupport_h__
#include "nscore.h"
#include "nsINode.h"
class nsINode;
class nsISelection;
class nsIDocument;
class nsIImageLoadingContent;

View File

@ -8,7 +8,9 @@
#include "nsIDOMNodeList.h"
#include "nsWrapperCache.h"
#include "nsIContent.h"
class nsIContent;
class nsINode;
// IID for the nsINodeList interface
#define NS_INODELIST_IID \

View File

@ -19,7 +19,8 @@
#include "nsCOMPtr.h"
#include "nsCycleCollectionParticipant.h"
#include "nsStubMutationObserver.h"
#include "nsIDocument.h"
class nsIDocument;
namespace mozilla {
class EventChainPreVisitor;

View File

@ -18,7 +18,10 @@
* binding's <xbl:content> element.
*/
#include "nsIContent.h"
#include <stdint.h>
#include "nsAutoPtr.h"
class nsIContent;
namespace mozilla {
namespace dom {

View File

@ -14,7 +14,7 @@
#include "mozilla/IHistory.h"
#include "mozilla/MemoryReporting.h"
#include "mozilla/dom/URLSearchParams.h"
#include "nsIContent.h"
#include "nsIContent.h" // for nsLinkState
namespace mozilla {

View File

@ -27,6 +27,7 @@
#include "nsWrapperCache.h"
#include "nsHashKeys.h"
#include "mozilla/HashFunctions.h"
#include "mozilla/dom/NameSpaceConstants.h"
namespace mozilla {
namespace dom {

View File

@ -17,6 +17,8 @@
#include "mozIApplication.h"
#include "nsIPermissionManager.h"
#include "GeckoProfiler.h"
#include "nsIDocument.h"
#include "nsPIDOMWindow.h"
using namespace mozilla;
using namespace mozilla::dom;

View File

@ -20,9 +20,9 @@
#include "nsCycleCollectionParticipant.h"
#include "nsISMILAttr.h"
#include "nsIDocument.h"
#include "mozilla/dom/ShadowRoot.h"
class nsIDocument;
class nsIDOMAttr;
class nsIDOMEventListener;
class nsIDOMNodeList;

View File

@ -12,7 +12,7 @@
#define nsTraversal_h___
#include "nsCOMPtr.h"
#include "nsIDocument.h"
#include "nsIDocument.h" // for NodeFilterHolder
#include "mozilla/dom/CallbackObject.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/NodeFilterBinding.h"

View File

@ -14,7 +14,6 @@
#include "nsIURI.h"
#include "nsIHttpChannel.h"
#include "nsIDocument.h"
#include "nsIContent.h"
#include "nsIStreamListener.h"
#include "nsWeakReference.h"
#include "nsIChannelEventSink.h"

View File

@ -12,12 +12,13 @@
#include "nsCycleCollectionParticipant.h"
#include "nsGenericHTMLElement.h"
#include "nsGkAtoms.h"
#include "nsIContent.h"
#include "nsIDocument.h"
#include "nsIDOMHTMLElement.h"
#include "nsIDOMEventTarget.h"
#include "nsIHttpChannel.h"
class nsIContent;
class nsIDocument;
namespace mozilla {
namespace dom {

View File

@ -10,7 +10,6 @@
#include "nsDOMSettableTokenList.h"
#include "nsFrameLoader.h"
#include "nsElementFrameLoaderOwner.h"
#include "nsIDocument.h"
#include "nsIDOMDocument.h"
#include "nsIDOMEventListener.h"
#include "nsIFrameLoader.h"
@ -25,6 +24,7 @@ nsresult NS_NewSVGIFrameElement(nsIContent **aResult,
typedef mozilla::dom::SVGGraphicsElement SVGIFrameElementBase;
class nsIDocument;
class nsSVGIFrameFrame;
namespace mozilla {

View File

@ -11,8 +11,8 @@
#include "mozilla/Attributes.h"
#include "mozilla/ErrorResult.h"
#include "nsWrapperCache.h"
#include "nsIContent.h"
class nsIContent;
class nsSVGElement;
namespace mozilla {

View File

@ -10,10 +10,11 @@
#include "nsCOMPtr.h"
#include "nsIDocument.h"
#include "nsIDOMEvent.h"
#include "nsINode.h"
#include "nsString.h"
#include "nsThreadUtils.h"
class nsINode;
namespace mozilla {
/**

View File

@ -15,11 +15,10 @@
#include "nsWrapperCache.h"
#include "jsapi.h"
#include "nsIDocument.h"
#include "mozilla/dom/TypedArray.h"
#include "jsfriendapi.h"
#include "js/GCAPI.h"
#include "nsPIDOMWindow.h"
struct JSContext;

View File

@ -17,7 +17,6 @@
#include "nsIScriptObjectPrincipal.h"
#include "nsIDOMEvent.h"
#include "nsIDocument.h"
#include "mozilla/Attributes.h"
#include "mozilla/DOMEventTargetHelper.h"

View File

@ -10,6 +10,9 @@
#include "nsLayoutUtils.h"
#include "nsIDOMElement.h"
#include "nsIInterfaceRequestorUtils.h"
#include "nsIContent.h"
#include "nsIDocument.h"
#include "nsIDOMWindow.h"
namespace mozilla {
namespace layers {

View File

@ -7,10 +7,12 @@
#define mozilla_layers_APZCCallbackHelper_h
#include "FrameMetrics.h"
#include "nsIContent.h"
#include "nsIDocument.h"
#include "nsIDOMWindowUtils.h"
class nsIContent;
class nsIDocument;
template<class T> struct already_AddRefed;
namespace mozilla {
namespace layers {

View File

@ -11,6 +11,7 @@
#include "base/message_loop.h"
#include "base/task.h"
#include "mozilla/dom/Element.h"
#include "nsIDocument.h"
#define AEM_LOG(...)
// #define AEM_LOG(...) printf_stderr("AEM: " __VA_ARGS__)

View File

@ -171,8 +171,6 @@
#endif
#endif /* XP_WIN */
#include "nsINode.h"
/***************************************************************************/
// default initial sizes for maps (hashtables)

View File

@ -14,6 +14,7 @@
#include "nsIDOMNode.h"
#include "nsIFormControl.h"
#include "nsStyleSet.h"
#include "nsIDocument.h"
using mozilla::dom::Element;

View File

@ -9,6 +9,7 @@
#include "mozilla/Attributes.h"
#include "nsContainerFrame.h"
#include "nsIAnonymousContentCreator.h"
#include "nsIContent.h"
#include "nsITextControlFrame.h"
#include "nsITextControlElement.h"
#include "nsIStatefulFrame.h"

View File

@ -12,11 +12,11 @@
#define nsIAnonymousContentCreator_h___
#include "nsQueryFrame.h"
#include "nsIContent.h"
#include "nsStyleContext.h"
#include "nsTArrayForwardDeclare.h"
class nsBaseContentList;
class nsIContent;
class nsIFrame;
/**

View File

@ -13,7 +13,7 @@
#include "nsIFrame.h"
#include "nsStyleStruct.h"
#include "nsIContent.h"
#include "nsIContent.h" // for GetParent()
inline void
nsStyleImage::SetSubImage(uint8_t aIndex, imgIContainer* aSubImage) const

View File

@ -12,7 +12,7 @@
#include "gfxMatrix.h"
#include "gfxRect.h"
#include "gfxSVGGlyphs.h"
#include "nsIContent.h"
#include "nsIContent.h" // for GetContent
#include "nsStubMutationObserver.h"
#include "nsSVGPaintServerFrame.h"

View File

@ -16,6 +16,7 @@
#include "nsTreeBodyFrame.h"
#include "mozilla/dom/Element.h"
#include "nsServiceManagerUtils.h"
#include "nsIDocument.h"
using namespace mozilla;

View File

@ -10,6 +10,7 @@
#include "nsIAtom.h"
#include "nsNameSpaceManager.h"
#include "nsGkAtoms.h"
#include "nsIContent.h"
using namespace mozilla;

View File

@ -6,8 +6,6 @@
#define nsHtml5TreeOpExecutor_h
#include "nsIAtom.h"
#include "nsIContent.h"
#include "nsIDocument.h"
#include "nsTraceRefcnt.h"
#include "nsHtml5TreeOperation.h"
#include "nsHtml5SpeculativeLoad.h"
@ -29,6 +27,8 @@ class nsHtml5Parser;
class nsHtml5TreeBuilder;
class nsHtml5Tokenizer;
class nsHtml5StreamParser;
class nsIContent;
class nsIDocument;
class nsHtml5TreeOpExecutor : public nsHtml5DocumentBuilder,
public nsIContentSink,

View File

@ -14,6 +14,7 @@
#include "nsWindow.h"
#include "nsIInterfaceRequestorUtils.h"
#include "AndroidBridge.h"
#include "nsIContent.h"
using mozilla::layers::APZCCallbackHelper;
using mozilla::layers::APZCTreeManager;