Bug 1660470 - Add missing include directives/forward declarations. r=nika

Differential Revision: https://phabricator.services.mozilla.com/D87865
This commit is contained in:
Simon Giesecke 2020-11-23 16:21:38 +00:00
parent 5a1d789cdd
commit 971b645fe3
1035 changed files with 1755 additions and 117 deletions

View File

@ -8,6 +8,7 @@
#include "Accessible-inl.h"
#include "AccessibleOrProxy.h"
#include "DocAccessibleParent.h"
#include "DocAccessible-inl.h"
#include "ProxyAccessibleWrap.h"
#include "SessionAccessibility.h"
#include "mozilla/PresShell.h"

View File

@ -8,6 +8,7 @@
#include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/DOMStringList.h"
#include "mozilla/StaticPrefs_accessibility.h"
#include "nsContentUtils.h"
#include "nsIPersistentProperties2.h"
#include "nsISimpleEnumerator.h"
@ -15,6 +16,9 @@
#include "nsAccessibilityService.h"
#include "DocAccessible.h"
#include "mozilla/dom/Document.h" // for inline nsINode::GetParentObject
#include "mozilla/dom/ToJSValue.h"
using namespace mozilla;
using namespace mozilla::a11y;
using namespace mozilla::dom;

View File

@ -12,6 +12,7 @@
#include "nsWrapperCache.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/DOMString.h"
#include "mozilla/dom/Nullable.h"
class nsINode;

View File

@ -9,6 +9,7 @@
#include "nsIAccessibleEvent.h"
#include "nsIGSettingsService.h"
#include "nsMai.h"
#include "nsServiceManagerUtils.h"
#include "AtkSocketAccessible.h"
#include "prenv.h"
#include "prlink.h"

View File

@ -17,6 +17,7 @@
#include "mozilla/dom/Selection.h"
#include "mozilla/dom/UserActivation.h"
#include "nsComponentManagerUtils.h"
#include "nsIMutableArray.h"
using namespace mozilla;

View File

@ -9,6 +9,7 @@
# include "XULTreeAccessible.h"
#endif
#include "mozilla/dom/DocumentOrShadowRoot.h"
#include "mozilla/dom/HTMLLabelElement.h"
using namespace mozilla;

View File

@ -19,6 +19,10 @@
# include "mozilla/a11y/Role.h"
#endif
#if defined(XP_WIN)
# include "Units.h"
#endif
namespace mozilla {
namespace a11y {

View File

@ -18,6 +18,7 @@
#include "nsIDOMXULContainerElement.h"
#include "nsIPersistentProperties2.h"
#include "nsISimpleEnumerator.h"
#include "mozilla/a11y/PDocAccessibleChild.h"
#include "mozilla/dom/Element.h"
#include "nsAccessibilityService.h"

View File

@ -27,6 +27,7 @@
#include "nsDOMTokenList.h"
#include "nsEventShell.h"
#include "nsIFrameInlines.h"
#include "nsServiceManagerUtils.h"
#include "nsTextFormatter.h"
#include "OuterDocAccessible.h"
#include "Role.h"

View File

@ -13,9 +13,11 @@
#include "mozilla/a11y/SelectionManager.h"
#include "mozilla/Preferences.h"
#include "nsIContent.h"
#include "nsIObserver.h"
#include "nsIAccessibleEvent.h"
#include "nsIEventListenerService.h"
#include "nsXULAppAPI.h"
#include "xpcAccessibilityService.h"
class nsImageFrame;

View File

@ -11,6 +11,7 @@
#include "Role.h"
#include "States.h"
#include "mozilla/dom/Element.h"
#include "nsIPersistentProperties2.h"
#include "nsComponentManagerUtils.h"

View File

@ -10,6 +10,7 @@
#include "DocAccessible.h"
#include "ARIAMap.h"
#include "nsCoreUtils.h"
#include "mozilla/dom/Element.h"
#include "mozilla/PresShell.h"
#ifdef A11Y_LOG

View File

@ -18,6 +18,7 @@
#include "nsIDocumentObserver.h"
#include "nsIObserver.h"
#include "nsITimer.h"
#include "nsWeakReference.h"
class nsAccessiblePivot;

View File

@ -10,6 +10,7 @@
#include "nsIAccessibleText.h"
#include "nsIAccessibleTypes.h"
#include "nsIFrame.h" // only for nsSelectionAmount
#include "nsISelectionController.h"
#include "nsDirection.h"
#include "WordMovementType.h"

View File

@ -9,6 +9,7 @@
#ifdef ACCESSIBILITY
# include "mozilla/a11y/Role.h"
# include "ipc/IPCMessageUtils.h"
namespace IPC {

View File

@ -18,6 +18,9 @@
#include "mozilla/a11y/ProxyAccessible.h"
#include "mozilla/Attributes.h"
#include "mozilla/mscom/Utils.h"
#include "mozilla/StaticPtr.h"
#include "nsXULAppAPI.h"
#include "Units.h"
#if defined(__GNUC__) || defined(__clang__)
// Inheriting from both XPCOM and MSCOM interfaces causes a lot of warnings

View File

@ -22,6 +22,7 @@
#include "nsXPCOM.h"
#include "RootAccessibleWrap.h"
#include "WinUtils.h"
#include "prenv.h"
#include <oaidl.h>

View File

@ -19,6 +19,7 @@
#include "nsRange.h"
#include "mozilla/dom/BorrowedAttrInfo.h"
#include "mozilla/dom/Document.h"
#include "mozilla/dom/Element.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/PresShell.h"

View File

@ -8,8 +8,11 @@
#include "nsCocoaUtils.h"
#include "nsContentUtils.h"
#include "nsIObserverService.h"
#include "nsISimpleEnumerator.h"
#include "nsIXPConnect.h"
#include "mozilla/dom/ToJSValue.h"
#include "mozilla/Services.h"
#include "nsString.h"
#import "mozAccessible.h"

View File

@ -12,6 +12,7 @@
#include "Role.h"
#include "States.h"
#include "mozilla/dom/Element.h"
#include "nsIDOMXULMenuListElement.h"
using namespace mozilla::a11y;

View File

@ -6,6 +6,7 @@
#include "nsXULAppAPI.h"
#include "mozilla/CmdLineAndEnvUtils.h"
#include "mozilla/XREAppData.h"
#include "XREShellData.h"
#include "application.ini.h"
#include "mozilla/Bootstrap.h"
#if defined(XP_WIN)

View File

@ -14,6 +14,7 @@
#include "base/message_loop.h" // for MessageLoop
#include "base/task.h" // for NewRunnableMethod, etc
#include "nsIServiceManager.h"
#include "nsIURI.h"
#include "nsNetCID.h"
#include "nsPrintfCString.h"
#include "nsIIOService.h"

View File

@ -4,6 +4,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "mozilla/ArrayUtils.h"
#include "mozilla/Preferences.h"
#include "nsCOMPtr.h"
#include "nsGNOMEShellService.h"

View File

@ -7,6 +7,7 @@
#include "nsDirectoryServiceDefs.h"
#include "nsIImageLoadingContent.h"
#include "mozilla/dom/Document.h"
#include "nsComponentManagerUtils.h"
#include "nsIContent.h"
#include "nsICookieJarSettings.h"
#include "nsIObserverService.h"
@ -18,6 +19,7 @@
#include "nsString.h"
#include "nsIDocShell.h"
#include "nsILoadContext.h"
#include "nsIPrefService.h"
#include "mozilla/dom/Element.h"
#include "DesktopBackgroundImage.h"

View File

@ -9,9 +9,11 @@
#include "imgIContainer.h"
#include "imgIRequest.h"
#include "mozilla/RefPtr.h"
#include "nsComponentManagerUtils.h"
#include "nsIContent.h"
#include "nsIImageLoadingContent.h"
#include "nsIOutputStream.h"
#include "nsIPrefService.h"
#include "nsIStringBundle.h"
#include "nsNetUtil.h"
#include "nsServiceManagerUtils.h"
@ -25,6 +27,7 @@
#include "nsXULAppAPI.h"
#include "mozilla/WindowsVersion.h"
#include "mozilla/dom/Element.h"
#include "mozilla/gfx/2D.h"
#include "WindowsDefaultBrowser.h"
#include "windows.h"

View File

@ -21,6 +21,7 @@
#include "mozilla/NullPrincipal.h"
#include "mozilla/dom/BlobURLProtocolHandler.h"
#include "mozilla/dom/ChromeUtils.h"
#include "mozilla/dom/ReferrerInfo.h"
#include "mozilla/dom/ToJSValue.h"
#include "mozilla/dom/nsMixedContentBlocker.h"
#include "mozilla/Components.h"

View File

@ -9,6 +9,7 @@
#include "nsChromeRegistryContent.h"
#include "nsCOMPtr.h"
#include "nsComponentManagerUtils.h"
#include "nsError.h"
#include "nsEscape.h"
#include "nsNetUtil.h"

View File

@ -5,6 +5,7 @@
#include "mozilla/devtools/DominatorTree.h"
#include "mozilla/dom/DominatorTreeBinding.h"
#include "mozilla/ErrorResult.h"
namespace mozilla {
namespace devtools {

View File

@ -8,6 +8,7 @@
#define mozilla_dom_BrowsingContext_h
#include "GVAutoplayRequestUtils.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/HalScreenConfiguration.h"
#include "mozilla/LinkedList.h"
#include "mozilla/Maybe.h"

View File

@ -21,12 +21,15 @@
#include "nsISecureBrowserUI.h"
class nsISHistory;
class nsIWidget;
class nsSHistory;
class nsBrowserStatusFilter;
class nsSecureBrowserUI;
class CallerWillNotifyHistoryIndexAndLengthChanges;
namespace mozilla {
enum class CallState;
namespace net {
class DocumentLoadListener;
}

View File

@ -8,6 +8,7 @@
#define mozilla_dom_SyncedContext_h
#include "mozilla/EnumSet.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/Maybe.h"
#include "mozilla/RefPtr.h"
#include "mozilla/Tuple.h"

View File

@ -11,6 +11,7 @@
#include "mozilla/dom/SyncedContextInlines.h"
#include "mozilla/dom/BrowsingContext.h"
#include "mozilla/dom/Document.h"
#include "mozilla/PermissionDelegateIPCUtils.h"
#include "mozilla/StaticPrefs_dom.h"
#include "mozilla/StaticPtr.h"
#include "mozilla/ClearOnShutdown.h"

View File

@ -28,6 +28,7 @@
#include "mozilla/LoadInfo.h"
#include "mozilla/Logging.h"
#include "mozilla/MediaFeatureChange.h"
#include "mozilla/ObservedDocShell.h"
#include "mozilla/Preferences.h"
#include "mozilla/PresShell.h"
#include "mozilla/ResultExtensions.h"
@ -118,6 +119,7 @@
#include "nsIInterfaceRequestorUtils.h"
#include "nsILayoutHistoryState.h"
#include "nsILoadInfo.h"
#include "nsILoadURIDelegate.h"
#include "nsIMultiPartChannel.h"
#include "nsINestedURI.h"
#include "nsINetworkPredictor.h"

View File

@ -407,8 +407,9 @@ class nsDocShell final : public nsDocLoader,
* `aCacheKey` gets passed to DoURILoad call.
*/
MOZ_CAN_RUN_SCRIPT_BOUNDARY
nsresult InternalLoad(nsDocShellLoadState* aLoadState,
Maybe<uint32_t> aCacheKey = mozilla::Nothing());
nsresult InternalLoad(
nsDocShellLoadState* aLoadState,
mozilla::Maybe<uint32_t> aCacheKey = mozilla::Nothing());
// Clear the document's storage access flag if needed.
void MaybeClearStorageAccessFlag();
@ -513,7 +514,7 @@ class nsDocShell final : public nsDocLoader,
const mozilla::dom::LoadingSessionHistoryInfo& aLoadingInfo);
already_AddRefed<nsIInputStream> GetPostDataFromCurrentEntry() const;
Maybe<uint32_t> GetCacheKeyFromCurrentEntry() const;
mozilla::Maybe<uint32_t> GetCacheKeyFromCurrentEntry() const;
// Loading and/or active entries are only set when pref
// fission.sessionHistoryInParent is on.
@ -598,7 +599,7 @@ class nsDocShell final : public nsDocLoader,
nsresult CreateAboutBlankContentViewer(
nsIPrincipal* aPrincipal, nsIPrincipal* aPartitionedPrincipal,
nsIContentSecurityPolicy* aCSP, nsIURI* aBaseURI,
const Maybe<nsILoadInfo::CrossOriginEmbedderPolicy>& aCOEP =
const mozilla::Maybe<nsILoadInfo::CrossOriginEmbedderPolicy>& aCOEP =
mozilla::Nothing(),
bool aTryToSaveOldPresentation = true, bool aCheckPermitUnload = true,
mozilla::dom::WindowGlobalChild* aActor = nullptr);
@ -663,8 +664,8 @@ class nsDocShell final : public nsDocLoader,
// This method calls SetHistoryEntry and updates mOSHE and mLSHE in BC to be
// the same as in docshell
void SetHistoryEntryAndUpdateBC(const Maybe<nsISHEntry*>& aLSHE,
const Maybe<nsISHEntry*>& aOSHE);
void SetHistoryEntryAndUpdateBC(const mozilla::Maybe<nsISHEntry*>& aLSHE,
const mozilla::Maybe<nsISHEntry*>& aOSHE);
static nsresult ReloadDocument(
nsDocShell* aDocShell, mozilla::dom::Document* aDocument,
@ -689,8 +690,8 @@ class nsDocShell final : public nsDocLoader,
// will be set as the originalURI. If LoadReplace is true, LOAD_REPLACE flag
// will be set on the nsIChannel.
// If `aCacheKey` is supplied, use it for the session history entry.
nsresult DoURILoad(nsDocShellLoadState* aLoadState, Maybe<uint32_t> aCacheKey,
nsIRequest** aRequest);
nsresult DoURILoad(nsDocShellLoadState* aLoadState,
mozilla::Maybe<uint32_t> aCacheKey, nsIRequest** aRequest);
static nsresult AddHeadersToChannel(nsIInputStream* aHeadersData,
nsIChannel* aChannel);

View File

@ -24,6 +24,7 @@
#include "nsITooltipListener.h"
#include "nsINode.h"
#include "Link.h"
#include "mozilla/dom/Document.h"
#include "mozilla/dom/Element.h"
#include "mozilla/dom/MouseEvent.h"
#include "mozilla/dom/SVGTitleElement.h"
@ -39,6 +40,7 @@
#include "nsRect.h"
#include "nsIWebBrowserChromeFocus.h"
#include "nsIContent.h"
#include "nsServiceManagerUtils.h"
#include "nsViewManager.h"
#include "nsView.h"
#include "nsIConstraintValidation.h"

View File

@ -12,6 +12,7 @@
#include "mozilla/dom/DocGroup.h"
#include "mozilla/dom/Document.h"
#include "nsIHttpChannel.h"
#include "nsIHttpChannelInternal.h"
#include "nsIInputStream.h"
#include "nsIProtocolHandler.h"

View File

@ -7,9 +7,12 @@
#include "TimelineConsumers.h"
#include "mozilla/ClearOnShutdown.h"
#include "mozilla/Services.h"
#include "jsapi.h"
#include "nsAppRunner.h" // for XRE_IsContentProcess, XRE_IsParentProcess
#include "nsCRT.h"
#include "nsDocShell.h"
#include "nsIObserverService.h"
namespace mozilla {

View File

@ -20,6 +20,7 @@
#define mozilla_dom_ChildSHistory_h
#include "nsCOMPtr.h"
#include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/ErrorResult.h"
#include "nsWrapperCache.h"
#include "nsThreadUtils.h"

View File

@ -6,13 +6,17 @@
#include "SessionHistoryEntry.h"
#include "nsDocShellLoadState.h"
#include "nsIHttpChannel.h"
#include "nsSHEntryShared.h"
#include "nsStructuredCloneContainer.h"
#include "nsXULAppAPI.h"
#include "mozilla/PresState.h"
#include "mozilla/Tuple.h"
#include "mozilla/dom/CSPMessageUtils.h"
#include "mozilla/dom/nsCSPContext.h"
#include "mozilla/dom/ReferrerInfoUtils.h"
#include "mozilla/ipc/IPDLParamTraits.h"
#include "mozilla/ipc/URIUtils.h"
extern mozilla::LazyLogModule gSHLog;

View File

@ -298,6 +298,8 @@ NS_DEFINE_STATIC_IID_ACCESSOR(SessionHistoryEntry, NS_SESSIONHISTORYENTRY_IID)
namespace ipc {
class IProtocol;
// Allow sending SessionHistoryInfo objects over IPC.
template <>
struct IPDLParamTraits<dom::SessionHistoryInfo> {

View File

@ -9,6 +9,7 @@
#include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/ErrorResult.h"
#include "nsCOMPtr.h"
#include "nsCycleCollectionParticipant.h"
#include "nsWrapperCache.h"

View File

@ -7,6 +7,7 @@
#include "AbortSignal.h"
#include "mozilla/dom/Event.h"
#include "mozilla/dom/EventBinding.h"
#include "mozilla/dom/AbortSignalBinding.h"
#include "mozilla/RefPtr.h"

View File

@ -25,7 +25,8 @@ class EffectSet;
namespace dom {
class Document;
}
class Element;
} // namespace dom
class AnimationUtils {
public:

View File

@ -7,6 +7,7 @@
#ifndef mozilla_dom_CSSTransition_h
#define mozilla_dom_CSSTransition_h
#include "mozilla/ComputedTiming.h"
#include "mozilla/dom/Animation.h"
#include "mozilla/StyleAnimationValue.h"
#include "AnimationCommon.h"

View File

@ -14,11 +14,12 @@
struct JSContext;
class JSObject;
class ComputedStyle;
struct RawServoDeclarationBlock;
namespace mozilla {
struct AnimationProperty;
class ComputedStyle;
enum class PseudoStyleType : uint8_t;
class ErrorResult;
struct Keyframe;

View File

@ -7,6 +7,7 @@
#include "PendingAnimationTracker.h"
#include "mozilla/PresShell.h"
#include "mozilla/dom/AnimationEffect.h"
#include "mozilla/dom/AnimationTimeline.h"
#include "mozilla/dom/Nullable.h"
#include "nsIFrame.h"

View File

@ -7,6 +7,7 @@
#ifndef mozilla_TimingParams_h
#define mozilla_TimingParams_h
#include "X11UndefineNone.h"
#include "nsPrintfCString.h"
#include "nsStringFwd.h"
#include "nsPrintfCString.h"

View File

@ -11,6 +11,7 @@
#include "mozilla/Services.h"
#include "mozilla/StaticPtr.h"
#include "mozilla/Unused.h"
#include "mozilla/dom/Document.h"
#include "nsContentUtils.h"
#include "nsISupportsPrimitives.h"

View File

@ -10,6 +10,7 @@
#include "mozilla/Assertions.h"
#include "mozilla/Attributes.h"
#include "mozilla/RangeUtils.h"
#include "mozilla/dom/Document.h"
#include "mozilla/dom/StaticRange.h"
#include "nsContentUtils.h"
#include "nsCycleCollectionParticipant.h"

View File

@ -8,6 +8,7 @@
#define mozilla_dom_AnonymousContent_h
#include "nsCycleCollectionParticipant.h"
#include "nsISupportsImpl.h"
class nsIPrincipal;

View File

@ -13,6 +13,7 @@
#include "mozilla/dom/Element.h"
#include "mozilla/EventDispatcher.h"
#include "mozilla/InternalMutationEvent.h"
#include "mozilla/StaticPrefs_dom.h"
#include "nsContentCreatorFunctions.h"
#include "nsError.h"
#include "nsUnicharUtils.h"

View File

@ -14,6 +14,7 @@
#include "mozilla/CheckedInt.h"
#include "mozilla/MathAlgorithms.h"
#include "mozilla/MemoryReporting.h"
#include "mozilla/dom/Document.h"
#include "nsMappedAttributeElement.h"
#include "nsString.h"

View File

@ -7,7 +7,11 @@
#include "mozilla/dom/BindContext.h"
#include "mozilla/dom/BrowsingContext.h"
#include "mozilla/dom/Document.h"
#include "mozilla/StaticPrefs_browser.h"
#include "nsContentUtils.h"
#include "nsError.h"
#include "nsPIDOMWindow.h"
namespace mozilla::dom {

View File

@ -7,6 +7,7 @@
#include "BodyConsumer.h"
#include "mozilla/dom/BlobBinding.h"
#include "mozilla/dom/BlobImpl.h"
#include "mozilla/dom/BlobURLProtocolHandler.h"
#include "mozilla/dom/BodyUtil.h"
#include "mozilla/dom/File.h"
@ -21,8 +22,11 @@
#include "mozilla/dom/WorkerRunnable.h"
#include "mozilla/dom/WorkerScope.h"
#include "mozilla/ipc/PBackgroundSharedTypes.h"
#include "nsComponentManagerUtils.h"
#include "nsIFile.h"
#include "nsIThreadRetargetableRequest.h"
#include "nsIStreamLoader.h"
#include "nsNetUtil.h"
#include "nsProxyRelease.h"
// Undefine the macro of CreateFile to avoid FileCreatorHelper#CreateFile being

View File

@ -11,6 +11,7 @@
#include "nsIGlobalObject.h"
#include "mozilla/Encoding.h"
#include "nsCRT.h"
#include "nsCharSeparatedTokenizer.h"
#include "nsDOMString.h"
#include "nsNetUtil.h"

View File

@ -3,9 +3,11 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "js/SliceBudget.h"
#include "mozilla/Telemetry.h"
#include "mozilla/TimeStamp.h"
#include "mozilla/MainThreadIdlePeriod.h"
#include "nsCycleCollector.h"
#include "nsJSEnvironment.h"
static const mozilla::TimeDuration kOneMinute =
mozilla::TimeDuration::FromSeconds(60.0f);

View File

@ -30,6 +30,7 @@
#include "mozilla/dom/DirectionalityUtils.h"
#include "nsCCUncollectableMarker.h"
#include "mozAutoDocUpdate.h"
#include "nsIContentInlines.h"
#include "nsTextNode.h"
#include "nsBidiUtils.h"
#include "PLDHashTable.h"

View File

@ -9,6 +9,7 @@
#include "mozilla/dom/SyncMessageSender.h"
#include "mozilla/dom/MessageManagerBinding.h"
#include "mozilla/HoldDropJSObjects.h"
namespace mozilla {
namespace dom {

View File

@ -5,7 +5,20 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "mozilla/dom/ChromeNodeList.h"
#include <new>
#include <utility>
#include "mozilla/ErrorResult.h"
#include "mozilla/RefPtr.h"
#include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/ChromeNodeListBinding.h"
#include "mozilla/dom/Document.h"
#include "nsCOMPtr.h"
#include "nsINode.h"
#include "nsISupports.h"
#include "nsPIDOMWindow.h"
#include "nsString.h"
#include "nsTArray.h"
using namespace mozilla;
using namespace mozilla::dom;

View File

@ -36,6 +36,7 @@
#include "mozilla/dom/PBrowserParent.h"
#include "mozilla/dom/PWindowGlobalParent.h"
#include "mozilla/dom/Performance.h"
#include "mozilla/dom/PopupBlocker.h"
#include "mozilla/dom/Promise.h"
#include "mozilla/dom/ReportingHeader.h"
#include "mozilla/dom/UnionTypes.h"

View File

@ -11,7 +11,9 @@
#include "nsCOMPtr.h"
#include "mozilla/dom/Comment.h"
#include "mozilla/dom/CommentBinding.h"
#include "mozilla/dom/Document.h"
#include "mozilla/IntegerPrintfMacros.h"
#include "nsPIDOMWindow.h"
using namespace mozilla;
using namespace dom;

View File

@ -6,6 +6,7 @@
#include "ContentFrameMessageManager.h"
#include "js/RootingAPI.h"
#include "mozilla/dom/BindingUtils.h"
#include "mozilla/dom/ScriptSettings.h"
using namespace mozilla;

View File

@ -12,6 +12,7 @@
#include "mozilla/dom/ParentProcessMessageManager.h"
#include "mozilla/dom/ScriptSettings.h"
#include "mozilla/dom/ipc/SharedMap.h"
#include "mozilla/HoldDropJSObjects.h"
using namespace mozilla;
using namespace mozilla::dom;

View File

@ -20,6 +20,7 @@
#include "mozilla/dom/CustomEvent.h"
#include "mozilla/dom/ShadowRoot.h"
#include "mozilla/AutoRestore.h"
#include "mozilla/HoldDropJSObjects.h"
#include "nsHTMLTags.h"
#include "jsapi.h"
#include "js/ForOfIterator.h" // JS::ForOfIterator

View File

@ -14,6 +14,7 @@
#endif
#include <stdint.h>
#include "js/Value.h"
#include "jspubtd.h"
#include "nsCOMPtr.h"
#include "nsCycleCollectionParticipant.h"

View File

@ -10,6 +10,7 @@
#include "mozilla/dom/DOMImplementationBinding.h"
#include "nsContentCreatorFunctions.h"
#include "nsContentUtils.h"
#include "mozilla/dom/Document.h"
#include "mozilla/dom/DocumentType.h"
#include "nsTextNode.h"

View File

@ -23,6 +23,8 @@ namespace mozilla {
namespace dom {
class Document;
class DocumentType;
template <typename T>
class Optional;
class DOMImplementation final : public nsISupports, public nsWrapperCache {
~DOMImplementation() = default;

View File

@ -8,6 +8,7 @@
#include "nsCSSPropertyID.h"
#include "nsIFrame.h"
#include "nsContainerFrame.h"
#include "nsIScrollableFrame.h"
#include "nsContentUtils.h"
#include "nsLayoutUtils.h"
#include "nsRefreshDriver.h"

View File

@ -11,6 +11,7 @@
#include "mozilla/dom/IntersectionObserverBinding.h"
#include "mozilla/ServoStyleConsts.h"
#include "mozilla/Variant.h"
#include "nsDOMNavigationTiming.h"
#include "nsTArray.h"
namespace mozilla {

View File

@ -10,6 +10,7 @@
#include "nsDOMString.h"
#include "MainThreadUtils.h"
#include "SystemPrincipal.h"
#include "nsIScriptGlobalObject.h"
#include "nsIStreamListener.h"
#include "nsStringStream.h"
#include "nsCRT.h"
@ -23,6 +24,7 @@
#include "mozilla/NullPrincipal.h"
#include "NullPrincipalURI.h"
#include "mozilla/dom/BindingUtils.h"
#include "mozilla/dom/Document.h"
#include "mozilla/dom/ScriptSettings.h"
using namespace mozilla;

View File

@ -8,6 +8,7 @@
#include "DOMException.h"
#include "nsThreadUtils.h"
#include "mozilla/HoldDropJSObjects.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/Event.h"
#include "mozilla/dom/Promise.h"

View File

@ -129,6 +129,7 @@
#include "mozilla/dom/Navigator.h"
#include "mozilla/dom/NetErrorInfoBinding.h"
#include "mozilla/dom/Performance.h"
#include "mozilla/dom/PermissionMessageUtils.h"
#include "mozilla/dom/TreeOrderedArrayInlines.h"
#include "mozilla/dom/ResizeObserver.h"
#include "mozilla/dom/ResizeObserverController.h"

View File

@ -12,6 +12,9 @@
#include "mozilla/dom/FragmentOrElement.h"
#include "nsStringFwd.h"
// XXX Avoid including this here by moving function bodies to the cpp file.
#include "mozilla/dom/Element.h"
class nsAtom;
class nsIContent;

View File

@ -10,6 +10,7 @@
#include "mozilla/dom/NameSpaceConstants.h"
#include "mozilla/IdentifierMapEntry.h"
#include "mozilla/RelativeTo.h"
#include "mozilla/ReverseIterator.h"
#include "nsClassHashtable.h"
#include "nsContentListDeclarations.h"
#include "nsTArray.h"

View File

@ -31,6 +31,8 @@
#include "mozilla/UniquePtr.h"
#include "mozilla/dom/DirectionalityUtils.h"
#include "mozilla/dom/FragmentOrElement.h"
#include "mozilla/dom/NameSpaceConstants.h"
#include "mozilla/dom/NodeInfo.h"
#include "mozilla/dom/PointerEventHandler.h"
#include "mozilla/dom/ShadowRootBinding.h"

View File

@ -20,10 +20,12 @@
#include "mozilla/dom/WorkerScope.h"
#include "mozilla/dom/EventSourceEventService.h"
#include "mozilla/UniquePtrExtensions.h"
#include "nsComponentManagerUtils.h"
#include "nsIThreadRetargetableStreamListener.h"
#include "nsNetUtil.h"
#include "nsIAuthPrompt.h"
#include "nsIAuthPrompt2.h"
#include "nsIHttpChannel.h"
#include "nsIInputStream.h"
#include "nsIInterfaceRequestorUtils.h"
#include "nsMimeTypes.h"

View File

@ -34,8 +34,10 @@
#include "mozilla/dom/Event.h"
#include "mozilla/dom/ScriptLoader.h"
#include "mozilla/dom/TouchEvent.h"
#include "mozilla/dom/CustomElementRegistry.h"
#include "mozilla/dom/Document.h"
#include "mozilla/dom/DocumentInlines.h"
#include "nsIControllers.h"
#include "nsIDocumentEncoder.h"
#include "nsFocusManager.h"
#include "nsIScriptGlobalObject.h"

View File

@ -15,6 +15,9 @@
#include "nsThreadUtils.h"
#include "plstr.h"
class nsAtom;
class nsIContent;
class nsINode;
class nsIURI;
class nsIReferrerInfo;

View File

@ -4,9 +4,11 @@
* 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/. */
#include "mozilla/dom/IdleDeadline.h"
#include <algorithm>
#include "mozilla/dom/IdleDeadline.h"
#include "mozilla/dom/Document.h"
#include "mozilla/dom/IdleDeadlineBinding.h"
#include "mozilla/dom/Performance.h"
#include "nsCOMPtr.h"

View File

@ -16,6 +16,7 @@
#include "mozilla/SyncRunnable.h"
#include "mozilla/Unused.h"
#include "gfxUtils.h"
#include "nsComponentManagerUtils.h"
#include "nsThreadUtils.h"
#include "nsNetUtil.h"
#include "nsXPCOMCIDInternal.h"

View File

@ -16,11 +16,13 @@
#include "nsIMozBrowserFrame.h"
#include "mozilla/EventDispatcher.h"
#include "mozilla/dom/ChromeMessageSender.h"
#include "mozilla/dom/Document.h"
#include "mozilla/dom/MessageManagerBinding.h"
#include "mozilla/dom/SameProcessMessageQueue.h"
#include "mozilla/dom/ScriptLoader.h"
#include "mozilla/dom/WindowProxyHolder.h"
#include "mozilla/dom/JSActorService.h"
#include "mozilla/HoldDropJSObjects.h"
using namespace mozilla;
using namespace mozilla::dom;

View File

@ -21,6 +21,7 @@
#include "mozilla/dom/ShadowRoot.h"
#include "mozilla/dom/SRILogHelper.h"
#include "mozilla/Preferences.h"
#include "mozilla/StaticPrefs_dom.h"
#include "nsIContent.h"
#include "mozilla/dom/Document.h"
#include "nsUnicharUtils.h"

View File

@ -27,6 +27,8 @@
#include "nsCycleCollectionParticipant.h"
#include "mozilla/Components.h"
#include "mozilla/NullPrincipal.h"
#include "mozilla/ServoStyleConsts.h"
#include "mozilla/StaticPrefs_dom.h"
#include "mozilla/Unused.h"
#include "mozilla/dom/Document.h"
#include "mozilla/dom/DocumentInlines.h"

View File

@ -7,6 +7,7 @@
#ifndef mozilla_dom_LocationBase_h
#define mozilla_dom_LocationBase_h
#include "mozilla/AlreadyAddRefed.h"
#include "mozilla/ErrorResult.h"
#include "nsStringFwd.h"

View File

@ -12,6 +12,7 @@
#include "jsapi.h"
#include "mozilla/ErrorResult.h"
#include "xpcpublic.h"
namespace mozilla::dom {

View File

@ -7,8 +7,10 @@
#ifndef mozilla_dom_PlacesWeakCallbackWrapper_h
#define mozilla_dom_PlacesWeakCallbackWrapper_h
#include "mozilla/WeakPtr.h"
#include "mozilla/dom/PlacesObserversBinding.h"
#include "mozilla/ErrorResult.h"
#include "nsIWeakReferenceUtils.h"
#include "nsWrapperCache.h"
namespace mozilla {

View File

@ -5,6 +5,7 @@
* You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "js/experimental/TypedData.h" // JS_GetFloat32ArrayData
#include "mozilla/ErrorResult.h"
#include "mozilla/HoldDropJSObjects.h"
#include "mozilla/dom/TypedArray.h"
#include "mozilla/dom/Pose.h"

View File

@ -32,6 +32,7 @@
#include "nsNetUtil.h"
#include "nsPresContext.h"
#include "nsQueryObject.h"
#include "nsServiceManagerUtils.h"
namespace mozilla::dom {

View File

@ -8,6 +8,7 @@
#include "mozilla/Assertions.h"
#include "mozilla/dom/AbstractRange.h"
#include "mozilla/dom/Document.h"
#include "mozilla/dom/ShadowRoot.h"
#include "nsContentUtils.h"

View File

@ -22,6 +22,9 @@
#include "nsTArray.h"
#include "nsWrapperCache.h"
// XXX Avoid including this here by moving function bodies to the cpp file
#include "nsPIDOMWindow.h"
namespace mozilla {
namespace dom {

View File

@ -7,6 +7,7 @@
#ifndef mozilla_dom_ResizeObserverController_h
#define mozilla_dom_ResizeObserverController_h
#include "mozilla/dom/Document.h"
#include "mozilla/dom/ResizeObserver.h"
#include "mozilla/TimeStamp.h"
#include "nsRefreshObservers.h"
@ -20,7 +21,6 @@ class PresShell;
namespace dom {
class Document;
class ResizeObserverController;
/**

View File

@ -21,6 +21,7 @@
#include "nsRange.h"
#include "nsTArrayForwardDeclare.h"
#include "nsThreadUtils.h"
#include "nsWeakReference.h"
#include "nsWrapperCache.h"
struct CachedOffsetForFrame;
@ -32,6 +33,9 @@ struct SelectionDetails;
struct SelectionCustomColors;
class nsCopySupport;
class nsHTMLCopyEncoder;
class nsPresContext;
struct nsPoint;
struct nsRect;
namespace mozilla {
class AccessibleCaretEventHub;

View File

@ -8,6 +8,7 @@
#include "js/SavedFrameAPI.h"
#include "mozilla/dom/WorkerPrivate.h"
#include "nsJSPrincipals.h"
namespace mozilla::dom {

View File

@ -19,6 +19,7 @@
#include "mozilla/IdentifierMapEntry.h"
#include "mozilla/PresShell.h"
#include "mozilla/PresShellInlines.h"
#include "mozilla/ScopeExit.h"
#include "mozilla/ServoStyleRuleMap.h"
#include "mozilla/StyleSheet.h"
#include "mozilla/StyleSheetInlines.h"

View File

@ -10,6 +10,7 @@
#include "js/Utility.h"
#include "js/Wrapper.h"
#include "mozilla/dom/BlobImpl.h"
#include "mozilla/dom/StructuredCloneHolderBinding.h"
#include "mozilla/dom/StructuredCloneTags.h"
#include "mozilla/Maybe.h"
#include "mozilla/UniquePtr.h"

View File

@ -31,6 +31,8 @@
#include "mozilla/dom/OffscreenCanvasBinding.h"
#include "mozilla/dom/PMessagePort.h"
#include "mozilla/dom/ScriptSettings.h"
#include "mozilla/dom/StructuredCloneBlob.h"
#include "mozilla/dom/StructuredCloneHolderBinding.h"
#include "mozilla/dom/StructuredCloneTags.h"
#include "mozilla/dom/ToJSValue.h"
#include "mozilla/dom/WebIDLSerializable.h"

View File

@ -10,6 +10,7 @@
#include "mozilla/RefPtr.h"
#include "mozilla/dom/StructuredCloneTags.h"
#include "mozilla/dom/StructuredCloneTesterBinding.h"
#include "nsIGlobalObject.h"
#include "xpcpublic.h"
namespace mozilla {

View File

@ -7,6 +7,7 @@
#include "TimeoutExecutor.h"
#include "mozilla/EventQueue.h"
#include "mozilla/Logging.h"
#include "mozilla/dom/TimeoutManager.h"
#include "nsComponentManagerUtils.h"
#include "nsIEventTarget.h"

View File

@ -7,6 +7,7 @@
#include "TimeoutHandler.h"
#include "mozilla/Assertions.h"
#include "mozilla/HoldDropJSObjects.h"
#include "nsJSUtils.h"
namespace mozilla::dom {

View File

@ -15,6 +15,7 @@
#include "mozilla/TimeStamp.h"
#include "nsINamed.h"
#include "mozilla/dom/DocGroup.h"
#include "mozilla/dom/Document.h"
#include "mozilla/dom/PopupBlocker.h"
#include "mozilla/dom/ContentChild.h"
#include "mozilla/dom/TimeoutHandler.h"

Some files were not shown because too many files have changed in this diff Show More