Clean backport of JDK-8378510. --------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
------------- Commit messages: - Backport 109b6f2321a8a7ebbe037460df44e8067d2525e0 Changes: https://git.openjdk.org/jfx26u/pull/28/files Webrev: https://webrevs.openjdk.org/?repo=jfx26u&pr=28&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8378510 Stats: 38 lines in 6 files changed: 30 ins; 0 del; 8 mod Patch: https://git.openjdk.org/jfx26u/pull/28.diff Fetch: git fetch https://git.openjdk.org/jfx26u.git pull/28/head:pull/28 PR: https://git.openjdk.org/jfx26u/pull/28
