[orca] Chromium: Update static text leaf definition
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Chromium: Update static text leaf definition
- Date: Fri, 7 Jun 2019 16:08:46 +0000 (UTC)
commit b8597495380ad56ec4e3ce2dfacb45f9c60e175e
Author: Joanmarie Diggs <jd blockhead hsd1 nh comcast net>
Date: Fri Jun 7 12:07:17 2019 -0400
Chromium: Update static text leaf definition
src/orca/scripts/toolkits/Chromium/script_utilities.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Chromium/script_utilities.py
b/src/orca/scripts/toolkits/Chromium/script_utilities.py
index 100c0accb..5ff0b59e6 100644
--- a/src/orca/scripts/toolkits/Chromium/script_utilities.py
+++ b/src/orca/scripts/toolkits/Chromium/script_utilities.py
@@ -59,8 +59,7 @@ class Utilities(web.Utilities):
if rv is not None:
return rv
- rv = obj.getRole() in [pyatspi.ROLE_TEXT, pyatspi.ROLE_STATIC] \
- and self._getTag(obj) in (None, "br")
+ rv = obj.getRole() == pyatspi.ROLE_TEXT 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]