Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Unified Diff: third_party/WebKit/Source/core/html/imports/HTMLImportLoader.cpp

Issue 2556043002: Avoid WTF::Vector::at() and operator[] in core/html. (Closed)
Patch Set: _ Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/imports/HTMLImportLoader.cpp
diff --git a/third_party/WebKit/Source/core/html/imports/HTMLImportLoader.cpp b/third_party/WebKit/Source/core/html/imports/HTMLImportLoader.cpp
index 779287e15e4f697bb5eed086c8b5b6b2e91e2352..1b85900a09d694398158bb46ea5fe176d2855390 100644
--- a/third_party/WebKit/Source/core/html/imports/HTMLImportLoader.cpp
+++ b/third_party/WebKit/Source/core/html/imports/HTMLImportLoader.cpp
@@ -171,8 +171,8 @@ bool HTMLImportLoader::hasPendingResources() const {
}
void HTMLImportLoader::didFinishLoading() {
- for (size_t i = 0; i < m_imports.size(); ++i)
- m_imports[i]->didFinishLoading();
+ for (const auto& importChild : m_imports)
+ importChild->didFinishLoading();
clearResource();

Powered by Google App Engine
This is Rietveld 408576698