| Index: Source/core/html/HTMLOptGroupElement.h
|
| diff --git a/Source/core/html/HTMLOptGroupElement.h b/Source/core/html/HTMLOptGroupElement.h
|
| index e3360f90410d2831df5b281025795942a38c394b..ccf6758b2c666d812a65a39f78c14eb9764a6aa8 100644
|
| --- a/Source/core/html/HTMLOptGroupElement.h
|
| +++ b/Source/core/html/HTMLOptGroupElement.h
|
| @@ -63,6 +63,22 @@ private:
|
| RefPtr<RenderStyle> m_style;
|
| };
|
|
|
| +inline bool isHTMLOptGroupElement(const Node* node)
|
| +{
|
| + return node->hasTagName(HTMLNames::optgroupTag);
|
| +}
|
| +
|
| +inline bool isHTMLOptGroupElement(const Element* element)
|
| +{
|
| + return element->hasTagName(HTMLNames::optgroupTag);
|
| +}
|
| +
|
| +inline HTMLOptGroupElement* toHTMLOptGroupElement(Node* node)
|
| +{
|
| + ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLOptGroupElement(node));
|
| + return static_cast<HTMLOptGroupElement*>(node);
|
| +}
|
| +
|
| } //namespace
|
|
|
| #endif
|
|
|