[Webkit-unassigned] [Bug 115610] Add Support for mspace element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 17 10:47:10 PDT 2013


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


Frédéric Wang <fred.wang at free.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #201993|0                           |1
        is obsolete|                            |




--- Comment #3 from Frédéric Wang <fred.wang at free.fr>  2013-05-17 10:45:38 PST ---
Created an attachment (id=202118)
 --> (https://bugs.webkit.org/attachment.cgi?id=202118&action=review)
Patch V2

OK, I added a parsing function for MathML Length, similar to the one in Gecko and I used that to parse the mspace attributes (and mfrac at linethickness). For the moment, unitless, % and px values should work, but I'm still not quite sure about how to handle the other CSS units.

@Martin: Any idea about how to convert the other CSS units to pixels? I tried things with style()->fontMetrics().xHeight(), style()->font().spaceWidth() or even style()->fontMetrics().unitsPerEm(), but that does not seem to work very well. There are probably functions in Webkit to do that conversion?

-- 
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