[orca] Use AT-SPI2's cache for children
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Use AT-SPI2's cache for children
- Date: Wed, 9 Dec 2020 14:53:58 +0000 (UTC)
commit 917aaf873bd0c234c799c0c6ac039ec57174aa8b
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Dec 9 15:49:55 2020 +0100
Use AT-SPI2's cache for children
Not using the cache for children was an old solution to work around not
getting updates from apps/toolkits/browsers when objects were added or
removed. But not using the AT-SPI2 cache comes with a performance hit
in large accessibility trees. Therefore, we'll start using the cache for
children and address specific offenders on a more targeted basis.
src/orca/scripts/default.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index def26ed18..4570a8f1c 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -124,8 +124,7 @@ class Script(script.Script):
self._sayAllContexts = []
if app:
- app.setCacheMask(
- pyatspi.cache.DEFAULT ^ pyatspi.cache.CHILDREN ^ pyatspi.cache.NAME ^
pyatspi.cache.DESCRIPTION)
+ app.setCacheMask(pyatspi.cache.DEFAULT ^ pyatspi.cache.NAME ^ pyatspi.cache.DESCRIPTION)
def setupInputEventHandlers(self):
"""Defines InputEventHandler fields for this script that can be
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]