Clean backport of https://github.com/openjdk/jfx/pull/1731
------------- Commit messages: - Backport 1c3cfcb8bb4e8874406d3a5b507f38859f4c1d9b Changes: https://git.openjdk.org/jfx24u/pull/11/files Webrev: https://webrevs.openjdk.org/?repo=jfx24u&pr=11&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8351368 Stats: 4 lines in 1 file changed: 0 ins; 0 del; 4 mod Patch: https://git.openjdk.org/jfx24u/pull/11.diff Fetch: git fetch https://git.openjdk.org/jfx24u.git pull/11/head:pull/11 PR: https://git.openjdk.org/jfx24u/pull/11