[Webkit-unassigned] [Bug 79274] Fix <msubsup> formatting

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Feb 26 11:40:08 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=79274





--- Comment #25 from Dave Barton <dbarton at mathscribe.com>  2012-02-26 11:40:08 PST ---
(From update of attachment 128903)
View in context: https://bugs.webkit.org/attachment.cgi?id=128903&action=review

I'll make the other changes you suggest. They're great, thanks for the care.

The earlier patches had a wrapper inheriting its style from its child during layout. This was due to a misreading of a CSS line layout detail on my part, so this inheriting kludge has been dropped. On the other hand, your TableCell intrinsic padding through virtual padding functions is intriguing for MathML. I'll persue this in e-mail or another patch soon.

>> Source/WebCore/ChangeLog:3
>> +        Fix <msubsup> formatting
> 
> BTW usually we prefer bugzilla bug titles to be more precise. Here it's difficult to understand what cases you want to fix (all of them? certain ones? in this case which ones?)

Good point. I can't change the title now, right?

>> Source/WebCore/ChangeLog:12
>> +        Test: 6 existing test files in mathml/presentation now produce improved results,
> 
> Saying how improved they are would help us, people who don't know what MathML should look like. From the traces, it looks like they are more densely laid out but I don't know if it's good or not.

I've added the main test case as an attachment to the bug. The real issue is vertical positioning of the subscript and superscript, allowing for arbitrary sizes of the various parts (base, subscript, superscript), together with some code clean-up.

>> Source/WebCore/rendering/mathml/RenderMathMLSubSup.cpp:141
>> +    RenderObject* subscriptWrapper = m_scripts->lastChild();
> 
> First, the name should be proper camelCase ie superScriptWrapper! (unless those are supposed to be some keywords and I missed it in the spec)
> 
> Please add 2 ASSERTs here:
> ASSERT(superScriptWrapper->isRenderMathMLBlock());
> ASSERT(subScriptWrapper->isRenderMathMLBlock());

subscript and superscript are definitely english words and standard mathematical ones (http://en.wikipedia.org/wiki/Subscript_and_superscript, MathML spec, etc.).

I'll add the ASSERT()s.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list