[orca] Remove the now-redundant call to descendantAtPoint()



commit 7f7d890aa16d2d45a0c3b171e04d9b0a6b119b78
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Wed May 20 11:12:48 2020 -0400

    Remove the now-redundant call to descendantAtPoint()
    
    An obsolete work-around for Chromium was included when descendantAtPoint
    was moved from the Chromium-specific script to the web script. Removing
    this work-around fixes an issue with mouse review for Firefox. Thanks to
    Colomban Wendling for sorting this out!

 src/orca/scripts/web/script_utilities.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index c4f2d3c6b..9761c1f13 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -831,8 +831,9 @@ class Utilities(script_utilities.Utilities):
         if self.isDocument(root):
             result = self.accessibleAtPoint(root, x, y, coordType)
 
-        root = result or root
-        result = super().descendantAtPoint(root, x, y, coordType)
+        if result is None:
+            result = super().descendantAtPoint(root, x, y, coordType)
+
         if self.isListItemMarker(result) or self.isStaticTextLeaf(result):
             return result.parent
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]