Generate isMathMLFoo() toMathMLFoo() by using NODE_TYPE_CASTS macro and generateTypeH...
[WebKit-https.git] / Source / WebCore / mathml / MathMLMencloseElement.h
index e7e7352..dc69c11 100755 (executable)
@@ -50,11 +50,7 @@ private:
     bool m_isRadicalValue;
 };
 
-inline MathMLMencloseElement* toMathMLMencloseElement(Node* node)
-{
-    ASSERT_WITH_SECURITY_IMPLICATION(!node || (node->isElementNode() && toElement(node)->hasTagName(MathMLNames::mencloseTag)));
-    return static_cast<MathMLMencloseElement*>(node);
-}
+NODE_TYPE_CASTS(MathMLMencloseElement)
 
 }