Index: Source/core/dom/DocumentOrderedMap.cpp |
diff --git a/Source/core/dom/DocumentOrderedMap.cpp b/Source/core/dom/DocumentOrderedMap.cpp |
index 9a5b1b87582ead6f9ec21ddd3bc7c7e0f4bf714f..980917f1a0a76e5da6fe0fbec2bdc700bde74610 100644 |
--- a/Source/core/dom/DocumentOrderedMap.cpp |
+++ b/Source/core/dom/DocumentOrderedMap.cpp |
@@ -52,12 +52,12 @@ inline bool keyMatchesId(AtomicStringImpl* key, Element* element) |
inline bool keyMatchesMapName(AtomicStringImpl* key, Element* element) |
{ |
- return element->hasTagName(mapTag) && static_cast<HTMLMapElement*>(element)->getName().impl() == key; |
+ return element->hasTagName(mapTag) && toHTMLMapElement(element)->getName().impl() == key; |
} |
inline bool keyMatchesLowercasedMapName(AtomicStringImpl* key, Element* element) |
{ |
- return element->hasTagName(mapTag) && static_cast<HTMLMapElement*>(element)->getName().lower().impl() == key; |
+ return element->hasTagName(mapTag) && toHTMLMapElement(element)->getName().lower().impl() == key; |
} |
inline bool keyMatchesLabelForAttribute(AtomicStringImpl* key, Element* element) |