diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-06-27 16:00:53 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-06-27 16:00:53 +0200 |
commit | fae32ecf4687753ad34b80b805cff62b86f90c95 (patch) | |
tree | c369019586632332b2627225eb7f6adab1e285d8 /dom/base/FragmentOrElement.h | |
parent | 129cd52a8dd4a062497774559b3f22ef9c16a5f2 (diff) | |
download | aura-central-fae32ecf4687753ad34b80b805cff62b86f90c95.tar.gz |
Stabilize and align Intersection Observers
- Fixes several crashes
- Aligns the feature with the W3C WD spec
Tag mcp-graveyard/UXP%249
Diffstat (limited to 'dom/base/FragmentOrElement.h')
-rw-r--r-- | dom/base/FragmentOrElement.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/dom/base/FragmentOrElement.h b/dom/base/FragmentOrElement.h index 1cd8033bb..7c74e9cd4 100644 --- a/dom/base/FragmentOrElement.h +++ b/dom/base/FragmentOrElement.h @@ -21,6 +21,7 @@ #include "nsIWeakReference.h" // base class #include "nsNodeUtils.h" // class member nsNodeUtils::CloneNodeImpl #include "nsIHTMLCollection.h" +#include "nsDataHashtable.h" class ContentUnbinder; class nsContentList; @@ -353,12 +354,7 @@ public: /** * Registered Intersection Observers on the element. */ - struct IntersectionObserverRegistration { - DOMIntersectionObserver* observer; - int32_t previousThreshold; - }; - - nsTArray<IntersectionObserverRegistration> mRegisteredIntersectionObservers; + nsDataHashtable<nsPtrHashKey<DOMIntersectionObserver>, int32_t> mRegisteredIntersectionObservers; }; protected: |