| Index: Source/core/html/HTMLOptGroupElement.h
|
| diff --git a/Source/core/html/HTMLOptGroupElement.h b/Source/core/html/HTMLOptGroupElement.h
|
| index b7592189df5e31bb511166e1b1c61f25cdca3edb..0cc4c1ea04aa183235cf912b789953b8574fec82 100644
|
| --- a/Source/core/html/HTMLOptGroupElement.h
|
| +++ b/Source/core/html/HTMLOptGroupElement.h
|
| @@ -73,11 +73,7 @@ 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);
|
| -}
|
| +DEFINE_NODE_TYPE_CASTS(HTMLOptGroupElement, hasTagName(HTMLNames::optgroupTag));
|
|
|
| } //namespace
|
|
|
|
|