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

Unified Diff: Source/modules/accessibility/AXARIAGridRow.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/AXARIAGridCell.cpp ('k') | Source/modules/accessibility/AXLayoutObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/accessibility/AXARIAGridRow.cpp
diff --git a/Source/modules/accessibility/AXARIAGridRow.cpp b/Source/modules/accessibility/AXARIAGridRow.cpp
index 2f66a4b118cece3487d3216d505838b2cd105a21..90917345a409b4e7562c52cc19b12932fd9eff52 100644
--- a/Source/modules/accessibility/AXARIAGridRow.cpp
+++ b/Source/modules/accessibility/AXARIAGridRow.cpp
@@ -60,7 +60,7 @@ bool AXARIAGridRow::isARIATreeGridRow() const
void AXARIAGridRow::headerObjectsForRow(AccessibilityChildrenVector& headers)
{
- 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/AXARIAGridCell.cpp ('k') | Source/modules/accessibility/AXLayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698