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

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

Issue 991863003: Avoid unnecessary copies of AccessibilityChildrenVector (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 5ab8848754d871aa79601100009df5016d8cf923..0a4996c099d9dbfc6dcfc5530f6a995ec6c724e6 100644
--- a/Source/modules/accessibility/AXTableRow.cpp
+++ b/Source/modules/accessibility/AXTableRow.cpp
@@ -116,7 +116,7 @@ void AXTableRow::headerObjectsForRow(AccessibilityChildrenVector& headers)
if (!m_renderer || !m_renderer->isTableRow())
return;
- AccessibilityChildrenVector rowChildren = children();
+ const AccessibilityChildrenVector& rowChildren = children();
unsigned childrenCount = rowChildren.size();
for (unsigned i = 0; i < childrenCount; i++) {
AXObject* cell = rowChildren[i].get();
« 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