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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXListBoxOption.cpp

Issue 2502413004: WTF/std normalization: replace WTF::Vector::last with ::back (Closed)
Patch Set: rebase Created 4 years, 1 month 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
Index: third_party/WebKit/Source/modules/accessibility/AXListBoxOption.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXListBoxOption.cpp b/third_party/WebKit/Source/modules/accessibility/AXListBoxOption.cpp
index 0edd2070bccfdee89a37fd7cc844814896e0a64f..9d31d2870b1bf3c65b0a6ff46571c87f2cbb1223 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXListBoxOption.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXListBoxOption.cpp
@@ -154,8 +154,8 @@ String AXListBoxOption::textAlternative(bool recursive,
textAlternative = toHTMLOptionElement(getNode())->displayLabel();
if (nameSources) {
nameSources->append(NameSource(foundTextAlternative));
- nameSources->last().type = nameFrom;
- nameSources->last().text = textAlternative;
+ nameSources->back().type = nameFrom;
+ nameSources->back().text = textAlternative;
foundTextAlternative = true;
}

Powered by Google App Engine
This is Rietveld 408576698