RESOLVED WONTFIX228905
ComplexTextController should add runs' initial advances to the previous glyph, not the current glyph
https://bugs.webkit.org/show_bug.cgi?id=228905
Summary ComplexTextController should add runs' initial advances to the previous glyph...
Myles C. Maxfield
Reported 2021-08-08 16:37:30 PDT
ComplexTextController should add runs' initial advances to the previous glyph, not the current glyph
Attachments
WIP (10.20 KB, patch)
2021-08-08 16:38 PDT, Myles C. Maxfield
no flags
Patch (15.13 KB, patch)
2021-08-08 19:01 PDT, Myles C. Maxfield
ews-feeder: commit-queue-
Myles C. Maxfield
Comment 1 2021-08-08 16:38:07 PDT
Myles C. Maxfield
Comment 2 2021-08-08 19:01:27 PDT
Myles C. Maxfield
Comment 3 2021-08-08 20:34:09 PDT
Looks like fast/text/initial-advance-selected-text.html is failing. We may actually need https://bugs.webkit.org/show_bug.cgi?id=228180.
Myles C. Maxfield
Comment 4 2021-08-08 20:44:11 PDT
Comment on attachment 435161 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=435161&action=review > Source/WebCore/ChangeLog:32 > + in first run) Whitespace
Myles C. Maxfield
Comment 5 2021-08-08 20:59:46 PDT
Right, it looks like CTRunGetInitialBaseAdvance() fixes this.
Myles C. Maxfield
Comment 6 2021-08-08 21:18:26 PDT
So it looks like both changes have to be made in tandem: 1. Initial advances get added to the previous glyph's advance, not the current glyph's advance 2. The initial advance points to the first glyph's pen position, not to its paint position
Myles C. Maxfield
Comment 7 2021-08-09 16:35:41 PDT
Let's not do this. Let's instead just delete the complex text codepath.
Note You need to log in before you can comment on or make changes to this bug.