mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 02:14:43 +00:00
Bug 1610064 - Avoid including StyleSheet.h from Document.h. r=nordzilla,firefox-style-system-reviewers
This in turn requires fixing various other include hell / missing include issues. Differential Revision: https://phabricator.services.mozilla.com/D60337 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
76ce9d96fa
commit
8a7906f381
@ -41,6 +41,7 @@
|
||||
#include "nsStubMutationObserver.h"
|
||||
#include "nsTHashtable.h" // for member
|
||||
#include "nsURIHashKey.h"
|
||||
#include "mozilla/ServoBindingTypes.h"
|
||||
#include "mozilla/UseCounter.h"
|
||||
#include "mozilla/WeakPtr.h"
|
||||
#include "Units.h"
|
||||
@ -59,7 +60,6 @@
|
||||
#include "mozilla/LinkedList.h"
|
||||
#include "mozilla/NotNull.h"
|
||||
#include "mozilla/SegmentedVector.h"
|
||||
#include "mozilla/StyleSheet.h"
|
||||
#include "mozilla/TimeStamp.h"
|
||||
#include "mozilla/UniquePtr.h"
|
||||
#include "mozilla/dom/FailedCertSecurityInfoBinding.h"
|
||||
@ -133,10 +133,11 @@ class nsXULPrototypeElement;
|
||||
class PermissionDelegateHandler;
|
||||
class nsIPermissionDelegateHandler;
|
||||
struct nsFont;
|
||||
struct StyleUseCounters;
|
||||
|
||||
namespace mozilla {
|
||||
class AbstractThread;
|
||||
class CSSStyleSheet;
|
||||
class StyleSheet;
|
||||
class EditorCommand;
|
||||
class Encoding;
|
||||
class ErrorResult;
|
||||
@ -144,9 +145,11 @@ class EventStates;
|
||||
class EventListenerManager;
|
||||
class FullscreenExit;
|
||||
class FullscreenRequest;
|
||||
struct LangGroupFontPrefs;
|
||||
class PendingAnimationTracker;
|
||||
class PresShell;
|
||||
class ServoStyleSet;
|
||||
enum class StyleOrigin : uint8_t;
|
||||
class SMILAnimationController;
|
||||
enum class StyleCursorKind : uint8_t;
|
||||
template <typename>
|
||||
|
@ -654,6 +654,11 @@ nsRadioGroupStruct* DocumentOrShadowRoot::GetOrCreateRadioGroup(
|
||||
.get();
|
||||
}
|
||||
|
||||
void DocumentOrShadowRoot::GetAdoptedStyleSheets(
|
||||
nsTArray<RefPtr<StyleSheet>>& aAdoptedStyleSheets, ErrorResult& aRv) const {
|
||||
aAdoptedStyleSheets = mAdoptedStyleSheets;
|
||||
}
|
||||
|
||||
void DocumentOrShadowRoot::Traverse(DocumentOrShadowRoot* tmp,
|
||||
nsCycleCollectionTraversalCallback& cb) {
|
||||
NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mStyleSheets)
|
||||
|
@ -29,11 +29,14 @@ namespace dom {
|
||||
|
||||
class Animation;
|
||||
class Element;
|
||||
class Document;
|
||||
class DocumentOrShadowRoot;
|
||||
class HTMLInputElement;
|
||||
struct nsRadioGroupStruct;
|
||||
class StyleSheetList;
|
||||
class ShadowRoot;
|
||||
template <typename T>
|
||||
class Sequence;
|
||||
|
||||
/**
|
||||
* A class meant to be shared by ShadowRoot and Document, that holds a list of
|
||||
@ -77,9 +80,7 @@ class DocumentOrShadowRoot {
|
||||
StyleSheetList* StyleSheets();
|
||||
|
||||
void GetAdoptedStyleSheets(nsTArray<RefPtr<StyleSheet>>& aAdoptedStyleSheets,
|
||||
ErrorResult& aRv) const {
|
||||
aAdoptedStyleSheets = mAdoptedStyleSheets;
|
||||
}
|
||||
ErrorResult& aRv) const;
|
||||
|
||||
void SetAdoptedStyleSheets(
|
||||
const Sequence<OwningNonNull<StyleSheet>>& aAdoptedStyleSheets,
|
||||
|
@ -10,7 +10,6 @@
|
||||
#include "nsDataHashtable.h"
|
||||
#include "nsHashKeys.h"
|
||||
#include "nsAtom.h"
|
||||
#include "mozilla/dom/Document.h"
|
||||
#include "nsStringFwd.h"
|
||||
#include "nsTArray.h"
|
||||
|
||||
|
@ -54,6 +54,7 @@
|
||||
#include "mozilla/Preferences.h"
|
||||
#include "mozilla/ResultExtensions.h"
|
||||
#include "mozilla/ScriptPreloader.h"
|
||||
#include "mozilla/ScopeExit.h"
|
||||
#include "mozilla/dom/ScriptSettings.h"
|
||||
#include "mozilla/ResultExtensions.h"
|
||||
#include "mozilla/UniquePtrExtensions.h"
|
||||
|
@ -7,13 +7,13 @@
|
||||
#ifndef nsDigestAuth_h__
|
||||
#define nsDigestAuth_h__
|
||||
|
||||
#include "nsICryptoHash.h"
|
||||
#include "nsIHttpAuthenticator.h"
|
||||
#include "nsStringFwd.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "mozilla/Attributes.h"
|
||||
#include "mozilla/StaticPtr.h"
|
||||
|
||||
class nsICryptoHash;
|
||||
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
|
Loading…
Reference in New Issue
Block a user