| Index: Source/core/html/HTMLAreaElement.h
|
| diff --git a/Source/core/html/HTMLAreaElement.h b/Source/core/html/HTMLAreaElement.h
|
| index 778e1e509cb9f6b0b20f3d00247ba8978664baed..056758adbfd8b9e34de80f2447f7ce2cd49bb59f 100644
|
| --- a/Source/core/html/HTMLAreaElement.h
|
| +++ b/Source/core/html/HTMLAreaElement.h
|
| @@ -68,6 +68,22 @@ private:
|
| Shape m_shape;
|
| };
|
|
|
| +inline bool isHTMLAreaElement(const Node* node)
|
| +{
|
| + return node->hasTagName(HTMLNames::areaTag);
|
| +}
|
| +
|
| +inline bool isHTMLAreaElement(const Element* element)
|
| +{
|
| + return element->hasTagName(HTMLNames::areaTag);
|
| +}
|
| +
|
| +inline HTMLAreaElement* toHTMLAreaElement(Node* node)
|
| +{
|
| + ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLAreaElement(node));
|
| + return static_cast<HTMLAreaElement*>(node);
|
| +}
|
| +
|
| } //namespace
|
|
|
| #endif
|
|
|