summaryrefslogtreecommitdiffstats
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
commit8b71cda1956ab640ad76bea36e7971476aa78bcf (patch)
treec369019586632332b2627225eb7f6adab1e285d8 /dom/base/FragmentOrElement.h
parent9168a0fc95f523c7c852ca95969edb39069f4a03 (diff)
downloadUXP-8b71cda1956ab640ad76bea36e7971476aa78bcf.tar
UXP-8b71cda1956ab640ad76bea36e7971476aa78bcf.tar.gz
UXP-8b71cda1956ab640ad76bea36e7971476aa78bcf.tar.lz
UXP-8b71cda1956ab640ad76bea36e7971476aa78bcf.tar.xz
UXP-8b71cda1956ab640ad76bea36e7971476aa78bcf.zip
Stabilize and align Intersection Observers
- Fixes several crashes - Aligns the feature with the W3C WD spec Tag #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: