Index: Source/core/frame/LocalDOMWindow.cpp |
diff --git a/Source/core/frame/LocalDOMWindow.cpp b/Source/core/frame/LocalDOMWindow.cpp |
index faff8fb2b9f7106d730abacd926d91210639bfab..7730623c1b06056d7f6f1ccdb376b26340ec4c8f 100644 |
--- a/Source/core/frame/LocalDOMWindow.cpp |
+++ b/Source/core/frame/LocalDOMWindow.cpp |
@@ -551,14 +551,14 @@ void LocalDOMWindow::willDetachFrameHost() |
void LocalDOMWindow::willDestroyDocumentInFrame() |
{ |
- for (WillBeHeapHashSet<RawPtrWillBeWeakMember<DOMWindowProperty> >::const_iterator it = m_properties.begin(); it != m_properties.end(); ++it) |
- (*it)->willDestroyGlobalObjectInFrame(); |
+ for (const auto& domWindowProperty : m_properties) |
+ domWindowProperty->willDestroyGlobalObjectInFrame(); |
} |
void LocalDOMWindow::willDetachDocumentFromFrame() |
{ |
- for (WillBeHeapHashSet<RawPtrWillBeWeakMember<DOMWindowProperty> >::const_iterator it = m_properties.begin(); it != m_properties.end(); ++it) |
- (*it)->willDetachGlobalObjectFromFrame(); |
+ for (const auto& domWindowProperty : m_properties) |
+ domWindowProperty->willDetachGlobalObjectFromFrame(); |
} |
void LocalDOMWindow::registerProperty(DOMWindowProperty* property) |