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

Unified Diff: Source/modules/accessibility/AXARIAGrid.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 | « no previous file | Source/modules/accessibility/AXARIAGridCell.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/accessibility/AXARIAGrid.cpp
diff --git a/Source/modules/accessibility/AXARIAGrid.cpp b/Source/modules/accessibility/AXARIAGrid.cpp
index 2cf3193abb26a64eeaf4ffa5d2d4b7be5e69bc12..6fe06eba85ffad7792a6b939eee0c9c66782f0c4 100644
--- a/Source/modules/accessibility/AXARIAGrid.cpp
+++ b/Source/modules/accessibility/AXARIAGrid.cpp
@@ -107,7 +107,7 @@ void AXARIAGrid::addChildren()
// The children of this non-row will contain all non-ignored elements (recursing to find them).
// This allows the table to dive arbitrarily deep to find the rows.
- AccessibilityChildrenVector children = child->children();
+ const AccessibilityChildrenVector& children = child->children();
size_t length = children.size();
for (size_t i = 0; i < length; ++i)
addTableCellChild(children[i].get(), appendedRows, columnCount);
« no previous file with comments | « no previous file | Source/modules/accessibility/AXARIAGridCell.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698