[orca] Chromium: Treat br elements as static text leaf nodes
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Chromium: Treat br elements as static text leaf nodes
- Date: Mon, 6 May 2019 13:33:26 +0000 (UTC)
commit 96948980ff51f6d8a20e67cff428dd80e9000abc
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon May 6 09:31:28 2019 -0400
Chromium: Treat br elements as static text leaf nodes
We get the newline char in the parent element and don't want to double-
present them.
src/orca/scripts/toolkits/Chromium/script_utilities.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/orca/scripts/toolkits/Chromium/script_utilities.py
b/src/orca/scripts/toolkits/Chromium/script_utilities.py
index e6198d6e6..518c1d0df 100644
--- a/src/orca/scripts/toolkits/Chromium/script_utilities.py
+++ b/src/orca/scripts/toolkits/Chromium/script_utilities.py
@@ -57,7 +57,7 @@ class Utilities(web.Utilities):
if rv is not None:
return rv
- rv = obj.getRole() == pyatspi.ROLE_TEXT and not self._getTag(obj)
+ 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]