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

Unified Diff: Source/core/layout/SubtreeLayoutScope.cpp

Issue 1062283002: Use C++11 range-based loop for core/layout (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix it naming Created 5 years, 8 months 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
« no previous file with comments | « Source/core/layout/LayoutTableSection.cpp ('k') | Source/core/layout/TextAutosizer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/SubtreeLayoutScope.cpp
diff --git a/Source/core/layout/SubtreeLayoutScope.cpp b/Source/core/layout/SubtreeLayoutScope.cpp
index c9f31de9d258222f2705ed1eb6b284a931dfb960..dee2af5ba8374497aef5bf8ec74db107d27418c5 100644
--- a/Source/core/layout/SubtreeLayoutScope.cpp
+++ b/Source/core/layout/SubtreeLayoutScope.cpp
@@ -47,8 +47,8 @@ SubtreeLayoutScope::~SubtreeLayoutScope()
RELEASE_ASSERT(!m_root.needsLayout());
#if ENABLE(ASSERT)
- for (HashSet<LayoutObject*>::iterator it = m_renderersToLayout.begin(); it != m_renderersToLayout.end(); ++it)
- (*it)->assertRendererLaidOut();
+ for (auto* renderer : m_renderersToLayout)
+ renderer->assertRendererLaidOut();
#endif
}
« no previous file with comments | « Source/core/layout/LayoutTableSection.cpp ('k') | Source/core/layout/TextAutosizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698