| Index: Source/core/dom/DocumentOrderedMap.cpp
|
| diff --git a/Source/core/dom/DocumentOrderedMap.cpp b/Source/core/dom/DocumentOrderedMap.cpp
|
| index 5c41c8dd812a31318f0d87d356cf4b866564678b..dd0b116eecb77ee38fe35823338265fb1aea2043 100644
|
| --- a/Source/core/dom/DocumentOrderedMap.cpp
|
| +++ b/Source/core/dom/DocumentOrderedMap.cpp
|
| @@ -36,6 +36,7 @@
|
| #include "core/dom/NodeTraversal.h"
|
| #include "core/dom/TreeScope.h"
|
| #include "core/dom/WebCoreMemoryInstrumentation.h"
|
| +#include "core/html/HTMLLabelElement.h"
|
| #include "core/html/HTMLMapElement.h"
|
| #include <wtf/MemoryInstrumentationHashCountedSet.h>
|
| #include <wtf/MemoryInstrumentationHashMap.h>
|
| @@ -61,7 +62,7 @@ inline bool keyMatchesLowercasedMapName(AtomicStringImpl* key, Element* element)
|
|
|
| inline bool keyMatchesLabelForAttribute(AtomicStringImpl* key, Element* element)
|
| {
|
| - return element->hasTagName(labelTag) && element->getAttribute(forAttr).impl() == key;
|
| + return isHTMLLabelElement(element) && element->getAttribute(forAttr).impl() == key;
|
| }
|
|
|
| void DocumentOrderedMap::clear()
|
|
|