[Webkit-unassigned] [Bug 170272] MathML: Extra left space for arrows inside <mo>

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 3 01:59:27 PDT 2017


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

--- Comment #8 from Frédéric Wang (:fredw) <fred.wang at free.fr> ---
(In reply to Alejandro G. Castro from comment #6)
> I also wonder why are we doing this part of the layout in the paint method,
> probably we should try to move to the layout if we don't find any real
> limitation. This could be also the problem, as you found leadingSpace is a
> calculation already centered and we are centering again in the paint. Maybe
> just try to move that to the layout and see if that is already done.

IIRC, the layout part calculates the preferred width and width (left space + right space + content width). However, for stretchy operators we paint them ourselves, so we have to do some special positioning of glyphs, mirroring (RTL) etc. It seems the reference point for the painting is the center of the operator (which probably makes thing easier to applies a scale transform in RTL). Probably things can be simplified as many things are inherited for the old implementations, but I don't remember exactly.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170403/cb8011e3/attachment.html>


More information about the webkit-unassigned mailing list