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.

-------------

Commit messages:
 - 8380790: add unit test
 - 8380790: reuse JEditorPaneAccessibleHypertextSupport

Changes: https://git.openjdk.org/jdk/pull/30401/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=30401&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8380790
  Stats: 54 lines in 2 files changed: 53 ins; 0 del; 1 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

Reply via email to