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

Unified Diff: third_party/WebKit/Source/core/html/HTMLCollection.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/html/HTMLCollection.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLCollection.cpp b/third_party/WebKit/Source/core/html/HTMLCollection.cpp
index 10a1735bd2b420c6fcf8aa4ce5c43a83cdbcb454..fcb65c161fdc31e2ee0b67db23f8bd2d8614ef51 100644
--- a/third_party/WebKit/Source/core/html/HTMLCollection.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLCollection.cpp
@@ -413,11 +413,11 @@ Element* HTMLCollection::namedItem(const AtomicString& name) const {
const NamedItemCache& cache = namedItemCache();
HeapVector<Member<Element>>* idResults = cache.getElementsById(name);
if (idResults && !idResults->isEmpty())
- return idResults->first();
+ return idResults->front();
HeapVector<Member<Element>>* nameResults = cache.getElementsByName(name);
if (nameResults && !nameResults->isEmpty())
- return nameResults->first();
+ return nameResults->front();
return nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698