From d39b639f561abbd8dab6d6f450509769a49f6a5d Mon Sep 17 00:00:00 2001 From: Simon Giesecke Date: Wed, 15 Jul 2020 13:55:24 +0000 Subject: [PATCH] Bug 1652942 - Remove some unnecessary includes of Element.h. r=smaug Depends on D83632 Differential Revision: https://phabricator.services.mozilla.com/D83633 --- dom/base/AnonymousContent.cpp | 1 + dom/base/AnonymousContent.h | 15 +++++++++++---- dom/flex/Flex.h | 2 +- dom/mathml/MathMLElement.h | 2 -- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/dom/base/AnonymousContent.cpp b/dom/base/AnonymousContent.cpp index 71ab27968d4e..8f33408a6edc 100644 --- a/dom/base/AnonymousContent.cpp +++ b/dom/base/AnonymousContent.cpp @@ -8,6 +8,7 @@ #include "mozilla/PresShell.h" #include "mozilla/dom/Document.h" #include "mozilla/dom/Element.h" +#include "mozilla/dom/Event.h" #include "mozilla/dom/AnonymousContentBinding.h" #include "nsComputedDOMStyle.h" #include "nsCycleCollectionParticipant.h" diff --git a/dom/base/AnonymousContent.h b/dom/base/AnonymousContent.h index 211eac2c267e..77ca224b8cc3 100644 --- a/dom/base/AnonymousContent.h +++ b/dom/base/AnonymousContent.h @@ -7,17 +7,24 @@ #ifndef mozilla_dom_AnonymousContent_h #define mozilla_dom_AnonymousContent_h -#include "mozilla/dom/Element.h" -#include "mozilla/dom/Event.h" #include "nsCycleCollectionParticipant.h" -#include "nsICSSDeclaration.h" -#include "mozilla/dom/Document.h" + +class nsIPrincipal; namespace mozilla { +class ErrorResult; + namespace dom { +class Animation; +class DOMRect; +class DOMString; class Element; +class Event; +template +class Sequence; class UnrestrictedDoubleOrAnonymousKeyframeAnimationOptions; +class UnrestrictedDoubleOrKeyframeAnimationOptions; class AnonymousContent final { public: diff --git a/dom/flex/Flex.h b/dom/flex/Flex.h index 4bec9a9ae577..27237acb3d79 100644 --- a/dom/flex/Flex.h +++ b/dom/flex/Flex.h @@ -7,7 +7,6 @@ #ifndef mozilla_dom_Flex_h #define mozilla_dom_Flex_h -#include "mozilla/dom/Element.h" #include "mozilla/dom/FlexBinding.h" #include "nsISupports.h" #include "nsWrapperCache.h" @@ -17,6 +16,7 @@ class nsFlexContainerFrame; namespace mozilla { namespace dom { +class Element; class FlexLineValues; class Flex : public nsISupports, public nsWrapperCache { diff --git a/dom/mathml/MathMLElement.h b/dom/mathml/MathMLElement.h index 614921d2d640..b2a990bb4b3a 100644 --- a/dom/mathml/MathMLElement.h +++ b/dom/mathml/MathMLElement.h @@ -8,10 +8,8 @@ #define mozilla_dom_MathMLElement_h_ #include "mozilla/Attributes.h" -#include "mozilla/dom/Element.h" #include "nsMappedAttributeElement.h" #include "Link.h" -#include "mozilla/dom/DOMRect.h" class nsCSSValue;