Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(198)

Unified Diff: third_party/WebKit/Source/core/dom/IntersectionObserver.h

Issue 2028363002: IntersectionObserver: make order of notifications deterministic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/intersection-observer/multiple-targets-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/IntersectionObserver.h
diff --git a/third_party/WebKit/Source/core/dom/IntersectionObserver.h b/third_party/WebKit/Source/core/dom/IntersectionObserver.h
index 6f513b4c32b80ec34ce0b19ded1552b7457405ac..469a0fa4ce2639ab255601b36dbb53cebaa1c4b7 100644
--- a/third_party/WebKit/Source/core/dom/IntersectionObserver.h
+++ b/third_party/WebKit/Source/core/dom/IntersectionObserver.h
@@ -50,7 +50,7 @@ public:
void deliver();
void removeObservation(IntersectionObservation&);
bool hasEntries() const { return m_entries.size(); }
- const HeapHashSet<WeakMember<IntersectionObservation>>& observations() const { return m_observations; }
+ const HeapLinkedHashSet<WeakMember<IntersectionObservation>>& observations() const { return m_observations; }
DECLARE_TRACE();
@@ -60,7 +60,7 @@ private:
Member<IntersectionObserverCallback> m_callback;
WeakMember<Node> m_root;
- HeapHashSet<WeakMember<IntersectionObservation>> m_observations;
+ HeapLinkedHashSet<WeakMember<IntersectionObservation>> m_observations;
HeapVector<Member<IntersectionObserverEntry>> m_entries;
Vector<float> m_thresholds;
Length m_topMargin;
« no previous file with comments | « third_party/WebKit/LayoutTests/intersection-observer/multiple-targets-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698