| Index: third_party/WebKit/Source/core/html/HTMLElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLElement.cpp b/third_party/WebKit/Source/core/html/HTMLElement.cpp
|
| index 0bf6ef826db5e5c44e923ec5000290a82c0bb844..f09922197c3f80765ef167fa650db48f8669f711 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLElement.cpp
|
| @@ -419,9 +419,8 @@ const AtomicString& HTMLElement::eventNameForAttributeName(
|
| {onwheelAttr, EventTypeNames::wheel},
|
| };
|
|
|
| - for (size_t i = 0; i < WTF_ARRAY_LENGTH(attrToEventNames); i++)
|
| - attributeNameToEventNameMap.set(attrToEventNames[i].attr.localName(),
|
| - attrToEventNames[i].event);
|
| + for (const auto& name : attrToEventNames)
|
| + attributeNameToEventNameMap.set(name.attr.localName(), name.event);
|
| }
|
|
|
| return attributeNameToEventNameMap.get(attrName.localName());
|
|
|