[orca/gnome-3-34] Chromium: Adjust descendant at point for text nodes and listemitem markers
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-34] Chromium: Adjust descendant at point for text nodes and listemitem markers
- Date: Wed, 20 Nov 2019 16:57:21 +0000 (UTC)
commit 90c740d6b0a1991ecb832108a1bd0fad9babb545
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Nov 20 11:55:33 2019 -0500
Chromium: Adjust descendant at point for text nodes and listemitem markers
src/orca/scripts/toolkits/Chromium/script_utilities.py | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/src/orca/scripts/toolkits/Chromium/script_utilities.py
b/src/orca/scripts/toolkits/Chromium/script_utilities.py
index 18506cb08..89aa566cf 100644
--- a/src/orca/scripts/toolkits/Chromium/script_utilities.py
+++ b/src/orca/scripts/toolkits/Chromium/script_utilities.py
@@ -486,3 +486,10 @@ class Utilities(web.Utilities):
return []
return super().findAllDescendants(root, includeIf, excludeIf)
+
+ def descendantAtPoint(self, root, x, y, coordType=None):
+ result = super().descendantAtPoint(root, x, y, coordType)
+ if self.isListItemMarker(result) or self.isStaticTextLeaf(result):
+ return result.parent
+
+ return result
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]