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