Commit 6b360f03 authored by Joanmarie Diggs's avatar Joanmarie Diggs

Don't use _treatObjectAsWhole in getOnScreenObjects

Using _treatObjectAsWhole has the side effect of preventing flat
review from getting all objects it should.
parent ef231ec6
......@@ -4995,15 +4995,6 @@ class Utilities(script_utilities.Utilities):
self._statusBar = super().statusBar(obj)
return self._statusBar
def getOnScreenObjects(self, root, extents=None):
if root and root.getRole() == pyatspi.ROLE_EMBEDDED:
return super().getOnScreenObjects(root, extents)
if self._treatObjectAsWhole(root):
return [root]
return super().getOnScreenObjects(root, extents)
def getPageObjectCount(self, obj):
result = {'landmarks': 0,
'headings': 0,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment