| Index: third_party/WebKit/Source/core/dom/TreeScope.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/TreeScope.cpp b/third_party/WebKit/Source/core/dom/TreeScope.cpp
|
| index 189c39f471c2d6b34d26e11b056d79112e3a7683..00f8cfe069f532fabe8f675da43b5452d5212bcd 100644
|
| --- a/third_party/WebKit/Source/core/dom/TreeScope.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/TreeScope.cpp
|
| @@ -315,7 +315,7 @@ HeapVector<Member<Element>> TreeScope::elementsFromHitTestResult(
|
|
|
| if (rootNode().isDocumentNode()) {
|
| if (Element* rootElement = toDocument(rootNode()).documentElement()) {
|
| - if (elements.isEmpty() || elements.last() != rootElement)
|
| + if (elements.isEmpty() || elements.back() != rootElement)
|
| elements.append(rootElement);
|
| }
|
| }
|
| @@ -503,8 +503,8 @@ const TreeScope* TreeScope::commonAncestorTreeScope(
|
| // returned.
|
| const TreeScope* lastAncestor = nullptr;
|
| while (!thisChain.isEmpty() && !otherChain.isEmpty() &&
|
| - thisChain.last() == otherChain.last()) {
|
| - lastAncestor = thisChain.last();
|
| + thisChain.back() == otherChain.back()) {
|
| + lastAncestor = thisChain.back();
|
| thisChain.pop_back();
|
| otherChain.pop_back();
|
| }
|
|
|