| Index: Source/core/html/HTMLHtmlElement.h
|
| diff --git a/Source/core/html/HTMLHtmlElement.h b/Source/core/html/HTMLHtmlElement.h
|
| index 6ac6ed49d03bc7126a401af266fa25e0e1ed0466..3dad99972c1735a801585fa8fef2c04deef20806 100644
|
| --- a/Source/core/html/HTMLHtmlElement.h
|
| +++ b/Source/core/html/HTMLHtmlElement.h
|
| @@ -41,6 +41,22 @@ private:
|
| virtual bool isURLAttribute(const Attribute&) const OVERRIDE;
|
| };
|
|
|
| +inline bool isHTMLHtmlElement(const Node* node)
|
| +{
|
| + return node->hasTagName(HTMLNames::htmlTag);
|
| +}
|
| +
|
| +inline bool isHTMLHtmlElement(const Element* element)
|
| +{
|
| + return element->hasTagName(HTMLNames::htmlTag);
|
| +}
|
| +
|
| +inline HTMLHtmlElement* toHTMLHtmlElement(Node* node)
|
| +{
|
| + ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLHtmlElement(node));
|
| + return static_cast<HTMLHtmlElement*>(node);
|
| +}
|
| +
|
| } // namespace
|
|
|
| #endif
|
|
|