Index: Source/core/dom/ScriptedAnimationController.cpp |
diff --git a/Source/core/dom/ScriptedAnimationController.cpp b/Source/core/dom/ScriptedAnimationController.cpp |
index a453e295e9de77839d74fad19472ebcc9e465db2..69ad2ae92db2ddf8f710a4bd5f9883dd7bf7a893 100644 |
--- a/Source/core/dom/ScriptedAnimationController.cpp |
+++ b/Source/core/dom/ScriptedAnimationController.cpp |
@@ -194,9 +194,8 @@ void ScriptedAnimationController::callMediaQueryListListeners() |
MediaQueryListListeners listeners; |
listeners.swap(m_mediaQueryListListeners); |
- for (MediaQueryListListeners::const_iterator it = listeners.begin(), end = listeners.end(); |
- it != end; ++it) { |
- (*it)->notifyMediaQueryChanged(); |
+ for (const auto& listener : listeners) { |
+ listener->notifyMediaQueryChanged(); |
} |
} |