Bug 130345

Summary: Refine childShouldCreateRenderer for MathML elements
Product: WebKit Reporter: Frédéric Wang (:fredw) <fred.wang>
Component: MathMLAssignee: Frédéric Wang (:fredw) <fred.wang>
Status: RESOLVED FIXED    
Severity: Normal CC: cfleizach, commit-queue, dbarton, mrobinson
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on: 124128, 130455    
Bug Blocks:    
Attachments:
Description Flags
Patch
none
Patch cfleizach: review+

Frédéric Wang (:fredw)
Reported 2014-03-17 09:50:23 PDT
Follow-up of bug 124128.
Attachments
Patch (51.89 KB, patch)
2014-03-20 08:05 PDT, Frédéric Wang (:fredw)
no flags
Patch (53.35 KB, patch)
2014-03-21 07:09 PDT, Frédéric Wang (:fredw)
cfleizach: review+
Frédéric Wang (:fredw)
Comment 1 2014-03-20 08:05:34 PDT
Created attachment 227290 [details] Patch This adds more restriction and more tests.
Frédéric Wang (:fredw)
Comment 2 2014-03-20 09:18:18 PDT
chris fleizach
Comment 3 2014-03-20 17:30:39 PDT
Comment on attachment 227290 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=227290&action=review > LayoutTests/mathml/presentation/annotation-children.html:9 > + <p><math><semantics><csymbol>Content MathML</csymbol><annotation>PA<mtext>ERROR</mtext>SS</annotation></semantics></math></p> can you added a comment line here to indicate what should be happening > LayoutTests/mathml/presentation/foreign-element-in-token.html:127 > + <p>var: <math><mtext><var>mtext</var></mtext></math></p> bad indendation > LayoutTests/mathml/presentation/foreign-element-in-token.html:133 > + <p>h1: <math><mi><h1>mi</h1></mi><mtext><h1>mi</h1></mtext><mn><h1>mn</h1></mn></math></p> do we need to test all the h tags > Source/WebCore/mathml/MathMLElement.cpp:286 > + return htmlElement.hasTagName(HTMLNames::htmlTag) || (isFlowContent(htmlElement) && StyledElement::childShouldCreateRenderer(child)); it looks like isFlowContent is already doing the StyledElement::childShouldCreateRenderer check
Frédéric Wang (:fredw)
Comment 4 2014-03-21 07:09:23 PDT
chris fleizach
Comment 5 2014-03-21 09:07:58 PDT
(In reply to comment #4) > Created an attachment (id=227430) [details] > Patch Should this be r?
Frédéric Wang (:fredw)
Comment 6 2014-03-21 09:09:35 PDT
Comment on attachment 227430 [details] Patch Yes, I forgot that one.
Frédéric Wang (:fredw)
Comment 7 2014-03-21 09:20:09 PDT
Note You need to log in before you can comment on or make changes to this bug.