зеркало из https://github.com/mozilla/gecko-dev.git
Bug 922933 - Don't #include nsIDocument.h in nsIContent.h; r=jst
--HG-- extra : rebase_source : 51f56fa27604224eacc2ba384bb826c49f4f917f
This commit is contained in:
Родитель
f7be39754e
Коммит
bf34a5f2f0
|
@ -7,6 +7,7 @@
|
|||
#define nsCoreUtils_h_
|
||||
|
||||
#include "nsIContent.h"
|
||||
#include "nsIDocument.h"
|
||||
#include "nsIPresShell.h"
|
||||
|
||||
#include "nsIDOMDOMStringList.h"
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
#include "nsChangeHint.h" // for enum
|
||||
#include "nsEventStates.h" // for member
|
||||
#include "mozilla/dom/DirectionalityUtils.h"
|
||||
#include "nsIDocument.h"
|
||||
#include "nsIDOMElement.h"
|
||||
#include "nsIDOMDocumentFragment.h"
|
||||
#include "nsILinkHandler.h"
|
||||
|
|
|
@ -49,6 +49,7 @@ EXPORTS += [
|
|||
'nsHostObjectProtocolHandler.h',
|
||||
'nsIAttribute.h',
|
||||
'nsIContent.h',
|
||||
'nsIContentInlines.h',
|
||||
'nsIContentIterator.h',
|
||||
'nsIContentSerializer.h',
|
||||
'nsIDocument.h',
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
#include "mozilla/Attributes.h"
|
||||
#include "nsCaseTreatment.h" // for enum, cannot be forward-declared
|
||||
#include "nsIDocument.h"
|
||||
#include "nsINode.h"
|
||||
|
||||
// Forward declarations
|
||||
class nsAString;
|
||||
|
@ -243,10 +243,7 @@ public:
|
|||
* Return true iff this node is in an HTML document (in the HTML5 sense of
|
||||
* the term, i.e. not in an XHTML/XML document).
|
||||
*/
|
||||
inline bool IsInHTMLDocument() const
|
||||
{
|
||||
return OwnerDoc()->IsHTML();
|
||||
}
|
||||
inline bool IsInHTMLDocument() const;
|
||||
|
||||
/**
|
||||
* Get the namespace that this element's tag is defined in
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
/* -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 8; -*- */
|
||||
/* vim: set sw=2 sts=2 ts=8 et tw=80 : */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#ifndef nsIContentInlines_h
|
||||
#define nsIContentInlines_h
|
||||
|
||||
#include "nsIContent.h"
|
||||
#include "nsIDocument.h"
|
||||
|
||||
inline bool
|
||||
nsIContent::IsInHTMLDocument() const
|
||||
{
|
||||
return OwnerDoc()->IsHTML();
|
||||
}
|
||||
|
||||
#endif // nsIContentInlines_h
|
|
@ -16,6 +16,7 @@
|
|||
#include "nsError.h"
|
||||
#include "nsUnicharUtils.h"
|
||||
#include "nsDOMString.h"
|
||||
#include "nsIContentInlines.h"
|
||||
#include "nsIDocument.h"
|
||||
#include "nsIDOMDocument.h"
|
||||
#include "nsIDOMUserDataHandler.h"
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
#include "mozilla/dom/Attr.h"
|
||||
#include "nsDOMAttributeMap.h"
|
||||
#include "nsIAtom.h"
|
||||
#include "nsIContentInlines.h"
|
||||
#include "nsINodeInfo.h"
|
||||
#include "nsIDocumentInlines.h"
|
||||
#include "nsIDOMNodeList.h"
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
|
||||
#include "mozilla/IHistory.h"
|
||||
#include "mozilla/MemoryReporting.h"
|
||||
#include "nsEventStates.h"
|
||||
#include "nsIContent.h"
|
||||
|
||||
namespace mozilla {
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
#include "nsAttrName.h"
|
||||
#include "nsContentUtils.h"
|
||||
#include "nsError.h"
|
||||
#include "nsIContentInlines.h"
|
||||
#include "nsIDocument.h"
|
||||
#include "nsIDOMDocument.h"
|
||||
#include "nsINameSpaceManager.h"
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#include "nsIDOMMozBrowserFrame.h"
|
||||
#include "nsIDOMWindow.h"
|
||||
#include "nsIPresShell.h"
|
||||
#include "nsIContent.h"
|
||||
#include "nsIContentInlines.h"
|
||||
#include "nsIContentViewer.h"
|
||||
#include "nsIDocument.h"
|
||||
#include "nsIDOMDocument.h"
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
#include "nsIContent.h" // for use in inline function (ParentChainChanged)
|
||||
#include "nsIMutationObserver.h" // for use in inline function (ParentChainChanged)
|
||||
#include "js/TypeDecls.h"
|
||||
#include "nsCOMArray.h"
|
||||
|
||||
struct CharacterDataChangeInfo;
|
||||
class nsIVariant;
|
||||
|
|
|
@ -22,6 +22,8 @@
|
|||
#include "nsCRT.h"
|
||||
#include "nsIScriptObjectPrincipal.h"
|
||||
#include "nsIScriptContext.h"
|
||||
#include "nsIDocument.h"
|
||||
#include "nsIScriptGlobalObject.h"
|
||||
|
||||
using namespace mozilla;
|
||||
using namespace mozilla::dom;
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
#include "nsAttrValueInlines.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsIAtom.h"
|
||||
#include "nsIContentInlines.h"
|
||||
#include "nsIContentViewer.h"
|
||||
#include "mozilla/css/StyleRule.h"
|
||||
#include "nsIDocument.h"
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
#include "nsDOMEventTargetHelper.h"
|
||||
#include "nsIWebVTTParserWrapper.h"
|
||||
#include "mozilla/StaticPtr.h"
|
||||
#include "nsIDocument.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
|
||||
#include "nsSVGFeatures.h"
|
||||
#include "nsIContent.h"
|
||||
#include "nsIDocument.h"
|
||||
#include "mozilla/Preferences.h"
|
||||
|
||||
using namespace mozilla;
|
||||
|
|
|
@ -30,6 +30,7 @@ class nsXBLBinding;
|
|||
template<class E> class nsRefPtr;
|
||||
typedef nsTArray<nsRefPtr<nsXBLBinding> > nsBindingList;
|
||||
class nsIPrincipal;
|
||||
class nsCSSStyleSheet;
|
||||
|
||||
class nsBindingManager MOZ_FINAL : public nsStubMutationObserver
|
||||
{
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
#include "txCore.h"
|
||||
#include "txXPathNode.h"
|
||||
#include "nsIContentInlines.h"
|
||||
#include "nsINodeInfo.h"
|
||||
#include "nsTArray.h"
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
#include "nsIDOMHTMLElement.h"
|
||||
#include "nsIDOMHTMLMenuItemElement.h"
|
||||
#include "nsXULContextMenuBuilder.h"
|
||||
#include "nsIDocument.h"
|
||||
|
||||
using namespace mozilla;
|
||||
using namespace mozilla::dom;
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
#include "nsXULTemplateResultSetRDF.h"
|
||||
#include "nsXULTemplateQueryProcessorRDF.h"
|
||||
#include "nsXULSortService.h"
|
||||
#include "nsIDocument.h"
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
|
|
|
@ -25,6 +25,8 @@
|
|||
#include "nsXULSortService.h"
|
||||
|
||||
#include "mozIStorageService.h"
|
||||
#include "nsIChannel.h"
|
||||
#include "nsIDocument.h"
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
//
|
||||
|
|
|
@ -59,6 +59,7 @@ using mozilla::DefaultXDisplay;
|
|||
#include "ImageContainer.h"
|
||||
#include "nsIDOMHTMLCollection.h"
|
||||
#include "GLContext.h"
|
||||
#include "nsIContentInlines.h"
|
||||
#include "mozilla/MiscEvents.h"
|
||||
#include "mozilla/MouseEvents.h"
|
||||
#include "mozilla/TextEvents.h"
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#include "nsCSSPseudoElements.h"
|
||||
#include "nsIAnonymousContentCreator.h"
|
||||
#include "nsFrameManager.h"
|
||||
#include "nsIDocument.h"
|
||||
|
||||
struct nsFrameItems;
|
||||
struct nsAbsoluteItems;
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
|
||||
#include "mozilla/Likely.h"
|
||||
#include "nsIURI.h"
|
||||
#include "nsIDocument.h"
|
||||
#include <algorithm>
|
||||
|
||||
static_assert((((1 << nsStyleStructID_Length) - 1) &
|
||||
|
|
|
@ -51,6 +51,7 @@ class nsMenuBarFrame;
|
|||
class nsMenuParent;
|
||||
class nsIDOMKeyEvent;
|
||||
class nsIDocShellTreeItem;
|
||||
class nsPIDOMWindow;
|
||||
|
||||
// when a menu command is executed, the closemenu attribute may be used
|
||||
// to define how the menu should be closed up
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#include "nsEventDispatcher.h"
|
||||
#include "nsIPresShell.h"
|
||||
#include "mozilla/BasicEvents.h"
|
||||
#include "nsIDocument.h"
|
||||
|
||||
using namespace mozilla;
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
#include "nsIServiceManager.h"
|
||||
#include "nsMenuUtilsX.h"
|
||||
#include "nsToolkit.h"
|
||||
#include "nsCRT.h"
|
||||
#include "mozilla/MiscEvents.h"
|
||||
#include "mozilla/Preferences.h"
|
||||
#include "mozilla/TextEvents.h"
|
||||
|
|
Загрузка…
Ссылка в новой задаче