The code that deals with ellipsis and selections is in a place that sounds like it should not be mutating state, but it is. This should likely move to SelectionRangeData. Move this code, and also make sure that it also works with the new HighlightAPI.
<rdar://problem/58125978>
Created attachment 438026 [details] Patch
Committed r282337 (241604@main): <https://commits.webkit.org/241604@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 438026 [details].
<rdar://problem/83062849>