summaryrefslogtreecommitdiff
path: root/dom/base/DocGroup.h
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-01-03 22:18:55 -0500
committerGaming4JC <g4jc@hyperbola.info>2020-01-26 15:50:12 -0500
commit25a33c7123d457a59ecb4b15a2466cfc8507406b (patch)
tree63a7ed7795fd48dfbe59cdc23738846646e7ce93 /dom/base/DocGroup.h
parent5cf46e2f87f4f6294d02d96c7905b069c9975eee (diff)
downloaduxp-25a33c7123d457a59ecb4b15a2466cfc8507406b.tar.gz
Bug 1347446 - Move custom element reactions stack to DocGroup.
Tag UXP Issue #1344
Diffstat (limited to 'dom/base/DocGroup.h')
-rw-r--r--dom/base/DocGroup.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/dom/base/DocGroup.h b/dom/base/DocGroup.h
index f4f7ac8ad0..5b8f627cc4 100644
--- a/dom/base/DocGroup.h
+++ b/dom/base/DocGroup.h
@@ -14,6 +14,7 @@
#include "nsString.h"
#include "mozilla/RefPtr.h"
+#include "mozilla/dom/CustomElementRegistry.h"
namespace mozilla {
namespace dom {
@@ -52,6 +53,14 @@ public:
{
return mTabGroup;
}
+ mozilla::dom::CustomElementReactionsStack* CustomElementReactionsStack()
+ {
+ if (!mReactionsStack) {
+ mReactionsStack = new mozilla::dom::CustomElementReactionsStack();
+ }
+
+ return mReactionsStack;
+ }
void RemoveDocument(nsIDocument* aWindow);
// Iterators for iterating over every document within the DocGroup
@@ -71,6 +80,7 @@ private:
nsCString mKey;
RefPtr<TabGroup> mTabGroup;
nsTArray<nsIDocument*> mDocuments;
+ RefPtr<mozilla::dom::CustomElementReactionsStack> mReactionsStack;
};
} // namespace dom