Bug 1695162 - Migrate from custom hashtable iteration to range-based for in accessible, dom/animation, dom/base, dom/localstorage, gfx/thebes. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D106895
This commit is contained in:
@@ -1721,8 +1721,8 @@ NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INTERNAL(FragmentOrElement)
|
||||
static_cast<IntersectionObserverList*>(
|
||||
elem->GetProperty(nsGkAtoms::intersectionobserverlist));
|
||||
if (observers) {
|
||||
for (auto iter = observers->Iter(); !iter.Done(); iter.Next()) {
|
||||
DOMIntersectionObserver* observer = iter.Key();
|
||||
for (const auto& entry : *observers) {
|
||||
DOMIntersectionObserver* observer = entry.GetKey();
|
||||
cb.NoteXPCOMChild(observer);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user