[orca/gnome-3-14] Remove the hack to find things on the same line which Gecko claims are not
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-14] Remove the hack to find things on the same line which Gecko claims are not
- Date: Tue, 2 Sep 2014 23:27:39 +0000 (UTC)
commit 294ff8879734032d4fc45d13c26269575cdb8275
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Sep 2 09:49:19 2014 -0400
Remove the hack to find things on the same line which Gecko claims are not
This hack causes far more false positives than fixes
.../scripts/toolkits/Gecko/script_utilities.py | 24 --------------------
1 files changed, 0 insertions(+), 24 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script_utilities.py
b/src/orca/scripts/toolkits/Gecko/script_utilities.py
index 0c9e237..29017a8 100644
--- a/src/orca/scripts/toolkits/Gecko/script_utilities.py
+++ b/src/orca/scripts/toolkits/Gecko/script_utilities.py
@@ -690,30 +690,6 @@ class Utilities(script_utilities.Utilities):
if not boundary == pyatspi.TEXT_BOUNDARY_LINE_START:
return text.getText(start, end), start, end
- # Then there are Gecko and authoring bugs we can deal with.
- extents = list(text.getRangeExtents(offset, offset + 1, 0))
- while 0 < start:
- pString, pStart, pEnd = text.getTextAtOffset(start - 1, boundary)
- if not (pString and pStart < start):
- break
-
- pExtents = list(text.getRangeExtents(pStart, pStart + 1, 0))
- if not self.extentsAreOnSameLine(extents, pExtents):
- break
-
- start = pStart
-
- while end < text.characterCount:
- nString, nStart, nEnd = text.getTextAtOffset(end, boundary)
- if not (nString and end < nEnd):
- break
-
- nExtents = list(text.getRangeExtents(nEnd, nEnd + 1, 0))
- if not self.extentsAreOnSameLine(extents, nExtents):
- break
-
- end = nEnd
-
return text.getText(start, end), start, end
def _getWordContentsForObj(self, obj, offset):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]