Source/WebCore: Invalid cast in WebCore::toRenderMathMLBlock
[WebKit-https.git] / Source / WebCore / ChangeLog
index 43cd426..a2efb51 100644 (file)
@@ -1,3 +1,24 @@
+2013-10-24  Brent Fulgham  <bfulgham@apple.com>
+
+        Invalid cast in WebCore::toRenderMathMLBlock
+        https://bugs.webkit.org/show_bug.cgi?id=121728
+        rdar://problem/15046151
+
+        Reviewed by Dean Jackson.
+
+        Tested by: mathml/arbitrary-markup.html
+
+        * dom/Element.h: Expose childShouldCreateRenderer for
+        MathML as well as SVG builds.
+        * dom/Node.h: 
+        (WebCore::Node::isMathMLElement): Added.
+        * mathml/MathMLElement.cpp:
+        (WebCore::MathMLElement::create): Create as MathML Element.
+        (WebCore::MathMLElement::childShouldCreateRenderer):
+        Only allow the child to emit a renderer if it is a
+        MathML element.
+        * mathml/MathMLElement.h:
+
 2013-10-29  Andreas Kling  <akling@apple.com>
 
         SVG: applyStrokeStyleToContext should take a RenderElement&.