[orca] Several additional changes to make children-changed processing more performant
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Several additional changes to make children-changed processing more performant
- Date: Sun, 27 Sep 2015 13:05:48 +0000 (UTC)
commit 1c4f0fb9f83624d19ca317e56223cb97b9007e2a
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Sun Sep 27 09:01:12 2015 -0400
Several additional changes to make children-changed processing more performant
src/orca/scripts/web/script.py | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index da807e8..7cc444f 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -1275,6 +1275,11 @@ class Script(default.Script):
debug.println(debug.LEVEL_INFO, msg)
return True
+ if self.utilities.isZombie(document):
+ msg = "WEB: Ignoring because %s is zombified." % document
+ debug.println(debug.LEVEL_INFO, msg)
+ return True
+
try:
docIsBusy = document.getState().contains(pyatspi.STATE_BUSY)
except:
@@ -1291,13 +1296,9 @@ class Script(default.Script):
debug.println(debug.LEVEL_INFO, msg)
return True
- if not self.utilities.inDocumentContent(event.source):
- msg = "WEB: Event source is not in document content"
- debug.println(debug.LEVEL_INFO, msg)
- return False
-
obj, offset = self.utilities.getCaretContext()
- if obj and self.utilities.isZombie(obj):
+ contextDocument = self.utilities.getDocumentForObject(obj)
+ if obj and document == contextDocument and self.utilities.isZombie(obj):
replicant = self.utilities.findReplicant(event.source, obj)
if replicant:
# Refrain from actually touching the replicant by grabbing
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]