summaryrefslogtreecommitdiff
path: root/dom/base/FragmentOrElement.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-06-27 16:00:53 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-06-27 16:00:53 +0200
commitfae32ecf4687753ad34b80b805cff62b86f90c95 (patch)
treec369019586632332b2627225eb7f6adab1e285d8 /dom/base/FragmentOrElement.h
parent129cd52a8dd4a062497774559b3f22ef9c16a5f2 (diff)
downloadaura-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.h8
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: