[orca] Aggressively clear cached text and language attributes
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Aggressively clear cached text and language attributes
- Date: Fri, 7 Jan 2022 13:37:29 +0000 (UTC)
commit cece99390724c24088dfe7f48783cb093c6cffc1
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Jan 7 14:36:42 2022 +0100
Aggressively clear cached text and language attributes
If content changes we can have broken or incomplete ranges.
src/orca/scripts/web/script_utilities.py | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index ad9480863..cff16fb7b 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -226,6 +226,8 @@ class Utilities(script_utilities.Utilities):
self._currentWordContents = None
self._currentCharacterContents = None
self._currentTextAttrs = {}
+ self._allTextAttrs = {}
+ self._languageAndDialects = {}
def isDocument(self, obj):
if not obj:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]