Re: Fixing TextFlow selection fill (JDK-8149134)

2023-06-16 Thread Kevin Rushforth
Hi, As far as I know, no one is working on this bug, so if you'd like to contribute a fix based on the initial patch, that would be fine. In addition to adding tests, we would want to see an evaluation that explains why the fix is correct, especially since the comment in the JDK bug says:

Fixing TextFlow selection fill (JDK-8149134)

2023-06-15 Thread William Barton
I've recently run into JDK-8149134: when a Text node has been added to a TextFlow, the Text node's selectionStart and selectionEnd properties are interpreted relative to the whole TextFlow rather than the individual span, which means that a selectionFill color may be applied in the wrong place.