| Index: third_party/WebKit/Source/core/html/HTMLAllCollection.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLAllCollection.cpp b/third_party/WebKit/Source/core/html/HTMLAllCollection.cpp
|
| index 5baa77a55fc9ecf93245546c1a303e6c7daa1bc8..139a6608455f0cd28d898975a01bdca4168b2ceb 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLAllCollection.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLAllCollection.cpp
|
| @@ -47,18 +47,18 @@ Element* HTMLAllCollection::namedItemWithIndex(const AtomicString& name,
|
| updateIdNameCache();
|
|
|
| const NamedItemCache& cache = namedItemCache();
|
| - if (HeapVector<Member<Element>>* elements = cache.getElementsById(name)) {
|
| + if (const auto* elements = cache.getElementsById(name)) {
|
| if (index < elements->size())
|
| return elements->at(index);
|
| index -= elements->size();
|
| }
|
|
|
| - if (HeapVector<Member<Element>>* elements = cache.getElementsByName(name)) {
|
| + if (const auto* elements = cache.getElementsByName(name)) {
|
| if (index < elements->size())
|
| return elements->at(index);
|
| }
|
|
|
| - return 0;
|
| + return nullptr;
|
| }
|
|
|
| void HTMLAllCollection::namedGetter(const AtomicString& name,
|
|
|