[orca] Chromium: Take listitem markers into account when identifying static text leafs
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Chromium: Take listitem markers into account when identifying static text leafs
- Date: Fri, 7 Jun 2019 17:19:14 +0000 (UTC)
commit 8bfcd13a01492e2a0ca002102150e4635c56bb86
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Jun 7 13:18:23 2019 -0400
Chromium: Take listitem markers into account when identifying static text leafs
src/orca/scripts/toolkits/Chromium/script_utilities.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/orca/scripts/toolkits/Chromium/script_utilities.py
b/src/orca/scripts/toolkits/Chromium/script_utilities.py
index 234617e73..1a0377c5d 100644
--- a/src/orca/scripts/toolkits/Chromium/script_utilities.py
+++ b/src/orca/scripts/toolkits/Chromium/script_utilities.py
@@ -73,7 +73,8 @@ class Utilities(web.Utilities):
rv = False
elif checkSiblings:
i = obj.getIndexInParent()
- if i > 0 and not self.isStaticTextLeaf(obj.parent[i - 1], False):
+ if i > 0 and not self.isStaticTextLeaf(obj.parent[i - 1], False) \
+ and not self.isListItemMarker(obj.parent[0]):
msg = "CHROMIUM: previous sibling of %s is not leaf so ignore leaf finding" % obj
debug.println(debug.LEVEL_INFO, msg, True)
rv = False
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]