| 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;
|
|
|