Index: Source/core/loader/ImageLoader.cpp |
diff --git a/Source/core/loader/ImageLoader.cpp b/Source/core/loader/ImageLoader.cpp |
index 1f66b47338649db2e12c895fc7ff653e73c580ca..ea9a2a52fe836f17183674097542bce75bef7bd0 100644 |
--- a/Source/core/loader/ImageLoader.cpp |
+++ b/Source/core/loader/ImageLoader.cpp |
@@ -575,14 +575,11 @@ void ImageLoader::elementDidMoveToNewDocument() |
void ImageLoader::sourceImageChanged() |
{ |
#if ENABLE(OILPAN) |
- PersistentHeapHashMap<WeakMember<ImageLoaderClient>, OwnPtr<ImageLoaderClientRemover> >::iterator end = m_clients.end(); |
- for (PersistentHeapHashMap<WeakMember<ImageLoaderClient>, OwnPtr<ImageLoaderClientRemover> >::iterator it = m_clients.begin(); it != end; ++it) { |
- it->key->notifyImageSourceChanged(); |
- } |
+ for (auto& client : m_clients) |
+ client.key->notifyImageSourceChanged(); |
#else |
- HashSet<ImageLoaderClient*>::iterator end = m_clients.end(); |
- for (HashSet<ImageLoaderClient*>::iterator it = m_clients.begin(); it != end; ++it) { |
- ImageLoaderClient* handle = *it; |
+ for (auto& client : m_clients) { |
+ ImageLoaderClient* handle = client; |
handle->notifyImageSourceChanged(); |
} |
#endif |