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 | 8b71cda1956ab640ad76bea36e7971476aa78bcf (patch) | |
tree | c369019586632332b2627225eb7f6adab1e285d8 /dom/base/FragmentOrElement.h | |
parent | 9168a0fc95f523c7c852ca95969edb39069f4a03 (diff) | |
download | UXP-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.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: |