[Webkit-unassigned] [Bug 157644] AX: Wrong CharacterOffset from an upstream VisiblePosition

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 12 16:15:39 PDT 2016


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

--- Comment #1 from Nan Wang <n_wang at apple.com> ---
Created attachment 278776
  --> https://bugs.webkit.org/attachment.cgi?id=278776&action=review
Initial patch

Spent quite a long time but was not able to create a layout test.
1. In Mail the end text marker of left line range has upstream affinity but I tried left/right and regular line text marker range call in layout test it gave downstream affinity all the time.
2. Although I had the fix to adjust CharacterOffset to match Range's end offset, TextIterator will always include an extra space at the line wrap. So there's no easy way to test this fix in a layout test by using lengthForTextMarkerRange of stringForTextMarkerRange, they all use TextIterator under the hood.

-- 
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/20160512/aad7027c/attachment.html>


More information about the webkit-unassigned mailing list