[orca] Clear the structural navigation cache in response to non-editable text changes
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Clear the structural navigation cache in response to non-editable text changes
- Date: Tue, 19 Jul 2016 00:10:59 +0000 (UTC)
commit da809fa27071d0c1a4a30212c56cd19468058239
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Jul 18 20:10:00 2016 -0400
Clear the structural navigation cache in response to non-editable text changes
src/orca/scripts/web/script.py | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index c04e25c..9975a4d 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -1718,6 +1718,12 @@ class Script(default.Script):
debug.println(debug.LEVEL_INFO, msg, True)
self.utilities.clearContentCache()
+ document = self.utilities.getDocumentForObject(event.source)
+ if document:
+ msg = "WEB: Clearing structural navigation cache for %s" % document
+ debug.println(debug.LEVEL_INFO, msg, True)
+ self.structuralNavigation.clearCache(document)
+
state = event.source.getState()
if not state.contains(pyatspi.STATE_EDITABLE):
if self._inMouseOverObject \
@@ -1777,6 +1783,12 @@ class Script(default.Script):
self.liveRegionManager.handleEvent(event)
return True
+ document = self.utilities.getDocumentForObject(event.source)
+ if document:
+ msg = "WEB: Clearing structural navigation cache for %s" % document
+ debug.println(debug.LEVEL_INFO, msg, True)
+ self.structuralNavigation.clearCache(document)
+
text = self.utilities.queryNonEmptyText(event.source)
if not text:
msg = "WEB: Ignoring: Event source is not a text object"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]