[orca] Revert "Be sure we have the active document in descendantAtPoint"



commit 169c3909f529e87f5b29cd17f7ef3cabd63a22d7
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Thu Nov 21 08:39:15 2019 -0500

    Revert "Be sure we have the active document in descendantAtPoint"
    
    This reverts commit 20196e0484489d801c0a14f26277ed8e70233299.

 src/orca/scripts/web/script_utilities.py | 7 -------
 1 file changed, 7 deletions(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index 984da4fac..79d1cb651 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -4584,13 +4584,6 @@ class Utilities(script_utilities.Utilities):
         if not self.inDocumentContent(root):
             return super().descendantAtPoint(root, x, y, coordType)
 
-        if self.isDocument(root):
-            active = self.activeDocument()
-            if active and root != active:
-                msg = "WEB: %s is not active. Updating to %s." % (root, active)
-                debug.println(debug.LEVEL_INFO, msg, True)
-                root = active
-
         isMatch = lambda o: self.containsPoint(o, x, y, coordType)
         candidates = self.findAllDescendants(root, isMatch)
 


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