[orca] Chromium: Treat listitem markers as static text leaf nodes
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Chromium: Treat listitem markers as static text leaf nodes
- Date: Mon, 6 May 2019 14:25:47 +0000 (UTC)
commit e23ce4eb0e0c0d7d8bdb9f7bf0fedfd0caf95072
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon May 6 10:24:33 2019 -0400
Chromium: Treat listitem markers as static text leaf nodes
We get the text in the parent element and don't want to double-present
them.
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 518c1d0df..6a2b74b78 100644
--- a/src/orca/scripts/toolkits/Chromium/script_utilities.py
+++ b/src/orca/scripts/toolkits/Chromium/script_utilities.py
@@ -57,7 +57,8 @@ class Utilities(web.Utilities):
if rv is not None:
return rv
- rv = obj.getRole() == pyatspi.ROLE_TEXT and self._getTag(obj) in (None, "br")
+ rv = obj.getRole() in [pyatspi.ROLE_TEXT, pyatspi.ROLE_STATIC] \
+ and self._getTag(obj) in (None, "br")
if rv:
msg = "CHROMIUM: %s believed to be static text leaf" % obj
debug.println(debug.LEVEL_INFO, msg, True)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]