Bug 128325

Summary: MathMLTextElement::childShouldCreateRenderer should return false for the mspace element
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: buildbot, cfleizach, commit-queue, dbarton, mrobinson, rniwa
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 124838    
Attachments:
Description Flags
Patch V1
none
Patch V1
none
Patch V2
buildbot: commit-queue-
Archive of layout-test-results from webkit-ews-05 for mac-mountainlion
none
Archive of layout-test-results from webkit-ews-14 for mac-mountainlion-wk2
none
Archive of layout-test-results from webkit-ews-03 for mac-mountainlion
none
Patch V3
cfleizach: review+
Patch (final version) none

Description Frédéric Wang (:fredw) 2014-02-06 12:27:25 PST
I'm extracting this small change from bug 124838.

The mspace element can not have children, so MathMLTextElement::childShouldCreateRenderer should always return false. Currently it renders true for text node. That should not be a problem since RenderMathMLSpace::isChildAllowed returns false, but let's explicitly prevent children on the content side. I'll also add a regression test to ensure that mspace does not have child renderers.
Comment 1 Frédéric Wang (:fredw) 2014-02-06 12:44:14 PST
Created attachment 223370 [details]
Patch V1

First try without test reference to get the PNG output.
Comment 2 Frédéric Wang (:fredw) 2014-02-06 12:46:39 PST
Created attachment 223371 [details]
Patch V1
Comment 3 Frédéric Wang (:fredw) 2014-02-07 01:53:48 PST
Created attachment 223434 [details]
Patch V2

Trying with the GTK screenshot...
Comment 4 Build Bot 2014-02-07 03:11:42 PST
Comment on attachment 223434 [details]
Patch V2

Attachment 223434 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/5999911136919552

New failing tests:
mathml/presentation/mspace-children.html
Comment 5 Build Bot 2014-02-07 03:11:44 PST
Created attachment 223445 [details]
Archive of layout-test-results from webkit-ews-05 for mac-mountainlion

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-05  Port: mac-mountainlion  Platform: Mac OS X 10.8.5
Comment 6 Build Bot 2014-02-07 03:42:36 PST
Comment on attachment 223434 [details]
Patch V2

Attachment 223434 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/4960967137951744

New failing tests:
mathml/presentation/mspace-children.html
Comment 7 Build Bot 2014-02-07 03:42:38 PST
Created attachment 223447 [details]
Archive of layout-test-results from webkit-ews-14 for mac-mountainlion-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-14  Port: mac-mountainlion-wk2  Platform: Mac OS X 10.8.5
Comment 8 Build Bot 2014-02-07 05:09:47 PST
Comment on attachment 223434 [details]
Patch V2

Attachment 223434 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/6156317873930240

New failing tests:
mathml/presentation/mspace-children.html
Comment 9 Build Bot 2014-02-07 05:09:50 PST
Created attachment 223449 [details]
Archive of layout-test-results from webkit-ews-03 for mac-mountainlion

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-03  Port: mac-mountainlion  Platform: Mac OS X 10.8.5
Comment 10 Frédéric Wang (:fredw) 2014-02-07 06:34:26 PST
Created attachment 223451 [details]
Patch V3

Now trying with Mac's expected text output.
Comment 11 chris fleizach 2014-02-07 09:36:51 PST
Comment on attachment 223451 [details]
Patch V3

View in context: https://bugs.webkit.org/attachment.cgi?id=223451&action=review

> Source/WebCore/ChangeLog:9
> +        childShouldCreateRenderer always returns false.

always "return" false
Comment 12 Frédéric Wang (:fredw) 2014-02-07 09:38:55 PST
Created attachment 223461 [details]
Patch (final version)
Comment 13 WebKit Commit Bot 2014-02-07 10:15:05 PST
Comment on attachment 223461 [details]
Patch (final version)

Clearing flags on attachment: 223461

Committed r163626: <http://trac.webkit.org/changeset/163626>
Comment 14 WebKit Commit Bot 2014-02-07 10:15:10 PST
All reviewed patches have been landed.  Closing bug.