Source/WebCore: Invalid cast in WebCore::toRenderMathMLBlock
[WebKit-https.git] / Source / WebCore / mathml / MathMLTextElement.cpp
index dcef222..9e3f7ee 100644 (file)
@@ -73,6 +73,11 @@ RenderElement* MathMLTextElement::createRenderer(PassRef<RenderStyle> style)
     return MathMLElement::createRenderer(std::move(style));
 }
 
+bool MathMLTextElement::childShouldCreateRenderer(const Node* child) const
+{
+    return child->isTextNode();
+}
+
 }
 
 #endif // ENABLE(MATHML)