summaryrefslogtreecommitdiffstats
path: root/dom/base/StyleSheetList.h
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-06-14 10:01:06 +0000
committerGitHub <noreply@github.com>2020-06-14 10:01:06 +0000
commit7cc007d9bf8927fc4ce1d5ea80a843d6edfc17dd (patch)
tree7b3ba52faca3704faf53d8248cbe130a32481b21 /dom/base/StyleSheetList.h
parent59a5adc93415f6d6e8ce4352ba0cd2d34d5e7888 (diff)
parentbbd59105da97200947ae62b2dc949a1130a40d75 (diff)
downloadUXP-7cc007d9bf8927fc4ce1d5ea80a843d6edfc17dd.tar
UXP-7cc007d9bf8927fc4ce1d5ea80a843d6edfc17dd.tar.gz
UXP-7cc007d9bf8927fc4ce1d5ea80a843d6edfc17dd.tar.lz
UXP-7cc007d9bf8927fc4ce1d5ea80a843d6edfc17dd.tar.xz
UXP-7cc007d9bf8927fc4ce1d5ea80a843d6edfc17dd.zip
Merge pull request #1591 from MoonchildProductions/sr.activeElement-work
Implement ShadowRoot.activeElement
Diffstat (limited to 'dom/base/StyleSheetList.h')
-rw-r--r--dom/base/StyleSheetList.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/dom/base/StyleSheetList.h b/dom/base/StyleSheetList.h
index ea5c33a98..f8f371a81 100644
--- a/dom/base/StyleSheetList.h
+++ b/dom/base/StyleSheetList.h
@@ -7,7 +7,7 @@
#ifndef mozilla_dom_StyleSheetList_h
#define mozilla_dom_StyleSheetList_h
-#include "mozilla/dom/StyleScope.h"
+#include "mozilla/dom/DocumentOrShadowRoot.h"
#include "nsIDOMStyleSheetList.h"
#include "nsWrapperCache.h"
#include "nsStubDocumentObserver.h"
@@ -31,28 +31,28 @@ public:
NS_DECL_NSIMUTATIONOBSERVER_NODEWILLBEDESTROYED
- explicit StyleSheetList(StyleScope& aScope);
+ explicit StyleSheetList(DocumentOrShadowRoot& aScope);
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override final;
nsINode* GetParentObject() const
{
- return mStyleScope ? &mStyleScope->AsNode() : nullptr;
+ return mDocumentOrShadowRoot ? &mDocumentOrShadowRoot->AsNode() : nullptr;
}
uint32_t Length() const
{
- return mStyleScope ? mStyleScope->SheetCount() : 0;
+ return mDocumentOrShadowRoot ? mDocumentOrShadowRoot->SheetCount() : 0;
}
StyleSheet* IndexedGetter(uint32_t aIndex, bool& aFound) const
{
- if (!mStyleScope) {
+ if (!mDocumentOrShadowRoot) {
aFound = false;
return nullptr;
}
- StyleSheet* sheet = mStyleScope->SheetAt(aIndex);
+ StyleSheet* sheet = mDocumentOrShadowRoot->SheetAt(aIndex);
aFound = !!sheet;
return sheet;
}
@@ -66,7 +66,7 @@ public:
protected:
virtual ~StyleSheetList();
- StyleScope* mStyleScope; // Weak, cleared on "NodeWillBeDestroyed".
+ DocumentOrShadowRoot* mDocumentOrShadowRoot; // Weak, cleared on "NodeWillBeDestroyed".
};
} // namespace dom