[Webkit-unassigned] [Bug 205486] ComplexTextController::offsetForPosition returns a wrong offset for a glyph boundary in a RTL text

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 23 01:54:49 PST 2019


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

--- Comment #7 from Fujii Hironori <Hironori.Fujii at sony.com> ---
ComplexTextController::offsetForPosition has the following code:

> unsigned hitIndex = hitGlyphStart + (hitGlyphEnd - hitGlyphStart) * (m_run.ltr() ? x / adjustedAdvance : 1 - x / adjustedAdvance);

If m_run.ltr() is true and x == 0, hitIndex would become hitGlyphEnd.
This is not expected.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191223/1bff87c7/attachment.htm>


More information about the webkit-unassigned mailing list