Issue #80 - De-unify dom/base

Tag #1375
This commit is contained in:
Matt A. Tobin 2020-04-17 07:40:32 -04:00 • committed by Roy Tam
commit 9fdf69e567
23 changed files with 42 additions and 2 deletions

View file

@ -8,6 +8,9 @@
#define mozilla_dom_BlobSet_h #define mozilla_dom_BlobSet_h
#include "mozilla/RefPtr.h" #include "mozilla/RefPtr.h"
#include "jsfriendapi.h"
#include "nsString.h"
#include "nsTArray.h"
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {

View file

@ -4,6 +4,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this file, * 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/. */ * You can obtain one at http://mozilla.org/MPL/2.0/. */
#include <stdint.h>
#ifndef CORSMode_h_ #ifndef CORSMode_h_
#define CORSMode_h_ #define CORSMode_h_

View file

@ -7,6 +7,7 @@
#include "mozilla/Base64.h" #include "mozilla/Base64.h"
#include "mozilla/BasePrincipal.h" #include "mozilla/BasePrincipal.h"
#include "jsfriendapi.h"
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {

View file

@ -10,6 +10,7 @@
#include "mozilla/dom/BindingDeclarations.h" #include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/ChromeUtilsBinding.h" #include "mozilla/dom/ChromeUtilsBinding.h"
#include "mozilla/dom/ThreadSafeChromeUtilsBinding.h" #include "mozilla/dom/ThreadSafeChromeUtilsBinding.h"
#include "mozilla/dom/UnionTypes.h"
#include "mozilla/ErrorResult.h" #include "mozilla/ErrorResult.h"
namespace mozilla { namespace mozilla {

View file

@ -11,6 +11,8 @@
#include "mozilla/dom/HTMLElementBinding.h" #include "mozilla/dom/HTMLElementBinding.h"
#include "mozilla/dom/WebComponentsBinding.h" #include "mozilla/dom/WebComponentsBinding.h"
#include "mozilla/dom/DocGroup.h" #include "mozilla/dom/DocGroup.h"
#include "mozilla/dom/Promise.h"
#include "nsContentUtils.h"
#include "nsHTMLTags.h" #include "nsHTMLTags.h"
#include "jsapi.h" #include "jsapi.h"

View file

@ -1,3 +1,7 @@
/* 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/. */
#include "mozilla/dom/DocGroup.h" #include "mozilla/dom/DocGroup.h"
#include "mozilla/dom/TabGroup.h" #include "mozilla/dom/TabGroup.h"
#include "mozilla/Telemetry.h" #include "mozilla/Telemetry.h"
@ -7,6 +11,7 @@
#include "mozilla/ClearOnShutdown.h" #include "mozilla/ClearOnShutdown.h"
#include "nsIDocShell.h" #include "nsIDocShell.h"
#include "nsDOMMutationObserver.h" #include "nsDOMMutationObserver.h"
#include "nsNetCID.h"
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {

View file

@ -7,6 +7,8 @@
#ifndef GroupedSHistory_h #ifndef GroupedSHistory_h
#define GroupedSHistory_h #define GroupedSHistory_h
#include "nsCOMArray.h"
#include "nsCycleCollectionParticipant.h" // NS_DECL_CYCLE_*
#include "nsIFrameLoader.h" #include "nsIFrameLoader.h"
#include "nsIGroupedSHistory.h" #include "nsIGroupedSHistory.h"
#include "nsIPartialSHistory.h" #include "nsIPartialSHistory.h"

View file

@ -8,6 +8,8 @@
* animating */ * animating */
#include "ImageTracker.h" #include "ImageTracker.h"
#include "mozilla/Preferences.h"
#include "nsAppRunner.h" // for XRE_IsContentProcess
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {

View file

@ -10,6 +10,7 @@
#ifndef mozilla_dom_ImageTracker #ifndef mozilla_dom_ImageTracker
#define mozilla_dom_ImageTracker #define mozilla_dom_ImageTracker
#include "imgIRequest.h"
#include "nsDataHashtable.h" #include "nsDataHashtable.h"
#include "nsHashKeys.h" #include "nsHashKeys.h"

View file

@ -7,6 +7,9 @@
#ifndef mozilla_dom_MutableBlobStorage_h #ifndef mozilla_dom_MutableBlobStorage_h
#define mozilla_dom_MutableBlobStorage_h #define mozilla_dom_MutableBlobStorage_h
#include "nsCycleCollectionParticipant.h"
#include "nsThreadUtils.h"
#include "nsProxyRelease.h"
#include "mozilla/RefPtr.h" #include "mozilla/RefPtr.h"
#include "prio.h" #include "prio.h"

View file

@ -5,6 +5,7 @@
#include "MutableBlobStreamListener.h" #include "MutableBlobStreamListener.h"
#include "MutableBlobStorage.h" #include "MutableBlobStorage.h"
#include "nsIInputStream.h"
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {

View file

@ -15,6 +15,7 @@
#include "mozilla/ArrayUtils.h" #include "mozilla/ArrayUtils.h"
#include "mozilla/Likely.h" #include "mozilla/Likely.h"
#include "mozilla/Unused.h"
#include "nsNodeInfoManager.h" #include "nsNodeInfoManager.h"
#include "nsCOMPtr.h" #include "nsCOMPtr.h"

View file

@ -8,6 +8,7 @@
#define mozilla_dom_Pose_h #define mozilla_dom_Pose_h
#include "nsWrapperCache.h" #include "nsWrapperCache.h"
#include "mozilla/ErrorResult.h"
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {

View file

@ -7,10 +7,12 @@
#ifndef TabGroup_h #ifndef TabGroup_h
#define TabGroup_h #define TabGroup_h
#include "nsIDocument.h"
#include "nsISupports.h" #include "nsISupports.h"
#include "nsISupportsImpl.h" #include "nsISupportsImpl.h"
#include "nsIPrincipal.h" #include "nsIPrincipal.h"
#include "nsTHashtable.h" #include "nsTHashtable.h"
#include "nsHashKeys.h"
#include "nsString.h" #include "nsString.h"
#include "mozilla/RefPtr.h" #include "mozilla/RefPtr.h"

View file

@ -10,6 +10,7 @@
#include "nsIChannel.h" #include "nsIChannel.h"
#include "nsIServiceManager.h" #include "nsIServiceManager.h"
#include "nsIHttpChannelInternal.h" #include "nsIHttpChannelInternal.h"
#include "nsPIDOMWindow.h"
#include "nsIDOMWindow.h" #include "nsIDOMWindow.h"
#include "nsILoadContext.h" #include "nsILoadContext.h"
#include "nsIPrincipal.h" #include "nsIPrincipal.h"

View file

@ -5,6 +5,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "TimeoutHandler.h" #include "TimeoutHandler.h"
#include "nsJSUtils.h"
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {

View file

@ -7,9 +7,11 @@
#ifndef mozilla_dom_timeout_handler_h #ifndef mozilla_dom_timeout_handler_h
#define mozilla_dom_timeout_handler_h #define mozilla_dom_timeout_handler_h
#include "nsCycleCollectionParticipant.h" // NS_DECL_CYCLE_*
#include "nsCOMPtr.h" #include "nsCOMPtr.h"
#include "nsISupports.h" #include "nsISupports.h"
#include "nsITimeoutHandler.h" #include "nsITimeoutHandler.h"
#include "nsString.h"
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {

View file

@ -7,6 +7,8 @@
#ifndef TimerClamping_h___ #ifndef TimerClamping_h___
#define TimerClamping_h___ #define TimerClamping_h___
#include <math.h>
namespace mozilla { namespace mozilla {
class TimerClamping class TimerClamping

View file

@ -225,7 +225,7 @@ EXPORTS.mozilla.dom += [
'WindowOrientationObserver.h', 'WindowOrientationObserver.h',
] ]
UNIFIED_SOURCES += [ SOURCES += [
'AnonymousContent.cpp', 'AnonymousContent.cpp',
'Attr.cpp', 'Attr.cpp',
'BarProps.cpp', 'BarProps.cpp',
@ -376,7 +376,7 @@ UNIFIED_SOURCES += [
] ]
if CONFIG['MOZ_WEBRTC']: if CONFIG['MOZ_WEBRTC']:
UNIFIED_SOURCES += [ SOURCES += [
'nsDOMDataChannel.cpp', 'nsDOMDataChannel.cpp',
] ]

View file

@ -7,6 +7,7 @@
#include "nsDOMMutationObserver.h" #include "nsDOMMutationObserver.h"
#include "mozilla/AnimationTarget.h" #include "mozilla/AnimationTarget.h"
#include "mozilla/CycleCollectedJSContext.h"
#include "mozilla/Maybe.h" #include "mozilla/Maybe.h"
#include "mozilla/OwningNonNull.h" #include "mozilla/OwningNonNull.h"
@ -30,6 +31,9 @@ using mozilla::dom::TreeOrderComparator;
using mozilla::dom::Animation; using mozilla::dom::Animation;
using mozilla::dom::Element; using mozilla::dom::Element;
using namespace mozilla;
using namespace mozilla::dom;
AutoTArray<RefPtr<nsDOMMutationObserver>, 4>* AutoTArray<RefPtr<nsDOMMutationObserver>, 4>*
nsDOMMutationObserver::sScheduledMutationObservers = nullptr; nsDOMMutationObserver::sScheduledMutationObservers = nullptr;

View file

@ -57,6 +57,7 @@
#include "mozilla/dom/ErrorEvent.h" #include "mozilla/dom/ErrorEvent.h"
#include "nsAXPCNativeCallContext.h" #include "nsAXPCNativeCallContext.h"
#include "mozilla/CycleCollectedJSContext.h" #include "mozilla/CycleCollectedJSContext.h"
#include "mozilla/Telemetry.h"
#include "nsJSPrincipals.h" #include "nsJSPrincipals.h"

View file

@ -31,6 +31,7 @@
#include "mozilla/dom/Element.h" #include "mozilla/dom/Element.h"
#include "mozilla/dom/ScriptSettings.h" #include "mozilla/dom/ScriptSettings.h"
using namespace mozilla;
using namespace mozilla::dom; using namespace mozilla::dom;
bool bool

View file

@ -35,6 +35,7 @@ public:
NS_IMETHOD GetParentRule(nsIDOMCSSRule **aParent) override; NS_IMETHOD GetParentRule(nsIDOMCSSRule **aParent) override;
virtual nsINode* GetParentObject() override; virtual nsINode* GetParentObject() override;
typedef mozilla::dom::DocGroup DocGroup;
virtual DocGroup* GetDocGroup() const override; virtual DocGroup* GetDocGroup() const override;
NS_IMETHOD SetPropertyValue(const nsCSSPropertyID aPropID, NS_IMETHOD SetPropertyValue(const nsCSSPropertyID aPropID,