diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2020-01-03 22:18:55 -0500 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2020-01-26 15:50:12 -0500 |
commit | 25a33c7123d457a59ecb4b15a2466cfc8507406b (patch) | |
tree | 63a7ed7795fd48dfbe59cdc23738846646e7ce93 /dom/base/DocGroup.h | |
parent | 5cf46e2f87f4f6294d02d96c7905b069c9975eee (diff) | |
download | UXP-25a33c7123d457a59ecb4b15a2466cfc8507406b.tar UXP-25a33c7123d457a59ecb4b15a2466cfc8507406b.tar.gz UXP-25a33c7123d457a59ecb4b15a2466cfc8507406b.tar.lz UXP-25a33c7123d457a59ecb4b15a2466cfc8507406b.tar.xz UXP-25a33c7123d457a59ecb4b15a2466cfc8507406b.zip |
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.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/dom/base/DocGroup.h b/dom/base/DocGroup.h index f4f7ac8ad..5b8f627cc 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 |