[orca] Don't handle ARIA content differently when getting the line contents
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Don't handle ARIA content differently when getting the line contents
- Date: Thu, 7 Aug 2014 15:48:19 +0000 (UTC)
commit 861182aeafd8e97cf405671b7c8af564a872d2ca
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Thu Aug 7 11:44:33 2014 -0400
Don't handle ARIA content differently when getting the line contents
Widgets are widgets and text is text whether it is ARIA or HTML or
whatever.
src/orca/scripts/toolkits/Gecko/script.py | 29 -----------------------------
1 files changed, 0 insertions(+), 29 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index 7044b0d..6ad77ff 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -3182,35 +3182,6 @@ class Script(default.Script):
if not obj:
return []
-
- # If it's an ARIA widget, we want the default generators to give
- # us all the details.
- #
- if not self.isNavigableAria(obj):
- if not self.isAriaWidget(obj):
- obj = obj.parent
-
- objects = [[obj, 0, 1, ""]]
- ext = obj.queryComponent().getExtents(0)
- extents = [ext.x, ext.y, ext.width, ext.height]
- for i in range(obj.getIndexInParent() + 1, obj.parent.childCount):
- newObj = obj.parent[i]
- ext = newObj.queryComponent().getExtents(0)
- newExtents = [ext.x, ext.y, ext.width, ext.height]
- if self.onSameLine(extents, newExtents):
- objects.append([newObj, 0, 1, ""])
- else:
- break
- for i in range(obj.getIndexInParent() - 1, -1, -1):
- newObj = obj.parent[i]
- ext = newObj.queryComponent().getExtents(0)
- newExtents = [ext.x, ext.y, ext.width, ext.height]
- if self.onSameLine(extents, newExtents):
- objects[0:0] = [[newObj, 0, 1, ""]]
- else:
- break
-
- return objects
boundary = pyatspi.TEXT_BOUNDARY_LINE_START
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]