> If we made n-many calls to > textPane.getAccessibleContext().getAccessibleText() then we'd add n-many > DocumentListeners to the HTMLDocument. > > These listeners are very light, but even so: after thousands of listeners it > may start to degrade performance. > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai).
Jeremy Wood has updated the pull request incrementally with one additional commit since the last revision: 8380790: adding new test I was worried this PR might uninstall the hypertext support object prematurely. But this test passes without any further intervention. (Maybe the hypertext support object IS being uninstalled, but that's OK because a replacement is lazily installed the next time we check.) ------------- Changes: - all: https://git.openjdk.org/jdk/pull/30401/files - new: https://git.openjdk.org/jdk/pull/30401/files/85114da4..ecf42005 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=30401&range=07 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=30401&range=06-07 Stats: 15 lines in 1 file changed: 13 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/30401.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/30401/head:pull/30401 PR: https://git.openjdk.org/jdk/pull/30401
