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

Unified Diff: third_party/WebKit/Source/core/xml/XPathNodeSet.cpp

Issue 2470233009: WTF/std normalization: replace WTF::Vector::first() with ::front() (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/core/xml/XPathNodeSet.cpp
diff --git a/third_party/WebKit/Source/core/xml/XPathNodeSet.cpp b/third_party/WebKit/Source/core/xml/XPathNodeSet.cpp
index 05aa34a3a464b920f53eebb67777eb58c3d01426..2280112d9e30e3925f709a7f8733f4d959d187c5 100644
--- a/third_party/WebKit/Source/core/xml/XPathNodeSet.cpp
+++ b/third_party/WebKit/Source/core/xml/XPathNodeSet.cpp
@@ -225,7 +225,7 @@ void NodeSet::traversalSort() const {
HeapVector<Member<Node>> sortedNodes;
sortedNodes.reserveInitialCapacity(nodeCount);
- for (Node& n : NodeTraversal::startsAt(*findRootNode(m_nodes.first()))) {
+ for (Node& n : NodeTraversal::startsAt(*findRootNode(m_nodes.front()))) {
if (nodes.contains(&n))
sortedNodes.append(&n);

Powered by Google App Engine
This is Rietveld 408576698