[orca] Remove an ancient hack for a Gecko bug which was fixed years ago
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Remove an ancient hack for a Gecko bug which was fixed years ago
- Date: Thu, 14 Nov 2013 21:51:04 +0000 (UTC)
commit d16abf97670f2ea9049dcdbfee863868c3925d2a
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Thu Nov 14 16:50:06 2013 -0500
Remove an ancient hack for a Gecko bug which was fixed years ago
src/orca/scripts/toolkits/Gecko/script.py | 14 +-------------
1 files changed, 1 insertions(+), 13 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index 1770667..b7c2ffb 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -2764,19 +2764,7 @@ class Script(default.Script):
except:
return [obj, -1]
else:
- # [[[TODO: WDW - HACK because Gecko currently exposes
- # whitespace from the raw HTML to us. We can infer this
- # by seeing if the extents are nil. If so, we skip to
- # the next character.]]]
- #
- extents = self.getExtents(obj,
- characterOffset,
- characterOffset + 1)
- if (extents == (0, 0, 0, 0)) \
- and ((characterOffset + 1) < len(unicodeText)):
- return self.findFirstCaretContext(obj, characterOffset + 1)
- else:
- return [obj, characterOffset]
+ return [obj, characterOffset]
elif obj.getRole() == pyatspi.ROLE_TABLE:
if obj[0] and obj[0].getRole() in [pyatspi.ROLE_CAPTION,
pyatspi.ROLE_LIST]:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]