| Index: Source/core/dom/Node.cpp
|
| diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp
|
| index e0d24e8ab16e72f4c888fc180b5eabe68c464ee6..f11948c231323a4d4195ad96c18b9946429a4a8b 100644
|
| --- a/Source/core/dom/Node.cpp
|
| +++ b/Source/core/dom/Node.cpp
|
| @@ -2031,8 +2031,8 @@ void Node::notifyMutationObserversNodeWillDetach()
|
| }
|
|
|
| if (WillBeHeapHashSet<RawPtrWillBeMember<MutationObserverRegistration>>* transientRegistry = node->transientMutationObserverRegistry()) {
|
| - for (WillBeHeapHashSet<RawPtrWillBeMember<MutationObserverRegistration>>::iterator iter = transientRegistry->begin(); iter != transientRegistry->end(); ++iter)
|
| - (*iter)->observedSubtreeNodeWillDetach(*this);
|
| + for (auto& registration : *transientRegistry)
|
| + registration->observedSubtreeNodeWillDetach(*this);
|
| }
|
| }
|
| }
|
|
|