scintilla: Accessible: use the built-in character position cache
commita587385de0b004399090480b852a907ced46f66f
authorColomban Wendling <ban@herbesfolles.org>
Fri, 5 Apr 2019 12:06:48 +0000 (5 14:06 +0200)
committerColomban Wendling <ban@herbesfolles.org>
Wed, 17 Apr 2019 21:12:35 +0000 (17 23:12 +0200)
tree937139af163218c0b446f1fb29713bddc11c538f
parentb6a132bc12df47bc92994792572ea962fd6f4aa6
scintilla: Accessible: use the built-in character position cache

It's quite a lot faster even after trying and optimizing the custom
version, and it makes the code simpler.

Also improve ByteOffsetFromCharacterOffset() to make use of the cache,
making it drastically faster.

X-Scintilla-Bug-URL: https://sourceforge.net/p/scintilla/bugs/2094/
X-Scintilla-Commit-ID: 01aab5f24e50ed14551c8c9c8ecce7ece0594c09
X-Scintilla-Commit-ID: 2c8b52af4ae5de2abe7c00fd18e78be60340cbf9

Fixes #2092.
scintilla/gtk/ScintillaGTK.cxx
scintilla/gtk/ScintillaGTKAccessible.cxx
scintilla/gtk/ScintillaGTKAccessible.h