Index: Source/core/html/HTMLMapElement.h |
diff --git a/Source/core/html/HTMLMapElement.h b/Source/core/html/HTMLMapElement.h |
index 7843179f0613d7321b838dbaf7717636bb43e4a9..e56929b5cd184decb40ea7d13ea349c8749da9fc 100644 |
--- a/Source/core/html/HTMLMapElement.h |
+++ b/Source/core/html/HTMLMapElement.h |
@@ -54,6 +54,12 @@ private: |
AtomicString m_name; |
}; |
+inline HTMLMapElement* toHTMLMapElement(Node* node) |
+{ |
+ ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::mapTag)); |
+ return static_cast<HTMLMapElement*>(node); |
+} |
+ |
} //namespace |
#endif |