Index: Source/core/dom/MutationObserverInterestGroup.cpp |
diff --git a/Source/core/dom/MutationObserverInterestGroup.cpp b/Source/core/dom/MutationObserverInterestGroup.cpp |
index ff525e5a861b55904418651dce5e910ee7e6d46f..6d250fc7c4f590fe88dcb18af1f93bef144cf138 100644 |
--- a/Source/core/dom/MutationObserverInterestGroup.cpp |
+++ b/Source/core/dom/MutationObserverInterestGroup.cpp |
@@ -56,8 +56,8 @@ MutationObserverInterestGroup::MutationObserverInterestGroup(WillBeHeapHashMap<R |
bool MutationObserverInterestGroup::isOldValueRequested() |
{ |
- for (WillBeHeapHashMap<RawPtrWillBeMember<MutationObserver>, MutationRecordDeliveryOptions>::iterator iter = m_observers.begin(); iter != m_observers.end(); ++iter) { |
- if (hasOldValue(iter->value)) |
+ for (auto& observer : m_observers) { |
+ if (hasOldValue(observer.value)) |
return true; |
} |
return false; |
@@ -67,9 +67,9 @@ void MutationObserverInterestGroup::enqueueMutationRecord(PassRefPtrWillBeRawPtr |
{ |
RefPtrWillBeRawPtr<MutationRecord> mutation = prpMutation; |
RefPtrWillBeRawPtr<MutationRecord> mutationWithNullOldValue = nullptr; |
- for (WillBeHeapHashMap<RawPtrWillBeMember<MutationObserver>, MutationRecordDeliveryOptions>::iterator iter = m_observers.begin(); iter != m_observers.end(); ++iter) { |
- MutationObserver* observer = iter->key; |
- if (hasOldValue(iter->value)) { |
+ for (auto& iter : m_observers) { |
+ MutationObserver* observer = iter.key; |
+ if (hasOldValue(iter.value)) { |
observer->enqueueMutationRecord(mutation); |
continue; |
} |