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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXLayoutObject.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/AXLayoutObject.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp b/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
index 20435e48b15ab59d3df948a0b66c59e53a239430..ce8c01c0b09f55b241e3c7c67d3c3a8126570dfe 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
@@ -1135,8 +1135,8 @@ String AXLayoutObject::textAlternative(bool recursive,
nameFrom = AXNameFromContents;
if (nameSources) {
nameSources->append(NameSource(false));
- nameSources->last().type = nameFrom;
- nameSources->last().text = textAlternative;
+ nameSources->back().type = nameFrom;
+ nameSources->back().text = textAlternative;
}
return textAlternative;
}
@@ -2303,7 +2303,7 @@ void AXLayoutObject::addHiddenChildren() {
if (AXObject* childObject = axObjectCache().get(child.layoutObject())) {
if (childObject->accessibilityIsIgnored()) {
const auto& children = childObject->children();
- childObject = children.size() ? children.last().get() : 0;
+ childObject = children.size() ? children.back().get() : 0;
}
if (childObject)
insertionIndex = m_children.find(childObject) + 1;

Powered by Google App Engine
This is Rietveld 408576698