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

Unified Diff: Source/modules/accessibility/AXTableRow.cpp

Issue 1019313003: Use c++11 range loops in accessibility (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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/modules/accessibility/AXTableColumn.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/accessibility/AXTableRow.cpp
diff --git a/Source/modules/accessibility/AXTableRow.cpp b/Source/modules/accessibility/AXTableRow.cpp
index a958688603cee563058d6d5506ba3f1f5df1edbd..88330839f08c95d5a6b7e0b0cc465ccceb3e6964 100644
--- a/Source/modules/accessibility/AXTableRow.cpp
+++ b/Source/modules/accessibility/AXTableRow.cpp
@@ -116,14 +116,11 @@ void AXTableRow::headerObjectsForRow(AccessibilityChildrenVector& headers)
if (!m_layoutObject || !m_layoutObject->isTableRow())
return;
- const AccessibilityChildrenVector& rowChildren = children();
- unsigned childrenCount = rowChildren.size();
- for (unsigned i = 0; i < childrenCount; i++) {
- AXObject* cell = rowChildren[i].get();
+ for (const auto& cell : children()) {
if (!cell->isTableCell())
continue;
- if (toAXTableCell(cell)->scanToDecideHeaderRole() == RowHeaderRole)
+ if (toAXTableCell(cell.get())->scanToDecideHeaderRole() == RowHeaderRole)
headers.append(cell);
}
}
« no previous file with comments | « Source/modules/accessibility/AXTableColumn.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698