orca r3907 - in branches/gnome-2-22: . src/orca
- From: joanied svn gnome org
- To: svn-commits-list gnome org
- Subject: orca r3907 - in branches/gnome-2-22: . src/orca
- Date: Tue, 20 May 2008 19:22:28 +0000 (UTC)
Author: joanied
Date: Tue May 20 19:22:27 2008
New Revision: 3907
URL: http://svn.gnome.org/viewvc/orca?rev=3907&view=rev
Log:
* src/orca/Gecko.py:
Fix for bug #527959 - Incorrect caret movement in Firefox 3 on
certain Web pages.
Modified:
branches/gnome-2-22/ChangeLog
branches/gnome-2-22/src/orca/Gecko.py
Modified: branches/gnome-2-22/src/orca/Gecko.py
==============================================================================
--- branches/gnome-2-22/src/orca/Gecko.py (original)
+++ branches/gnome-2-22/src/orca/Gecko.py Tue May 20 19:22:27 2008
@@ -7774,7 +7774,12 @@
if childIndex >= 0:
child = obj[childIndex]
childText = self.queryNonEmptyText(child)
- if childText:
+ childRole = child.getRole()
+ # If the object represented by the EOC at the beginning
+ # of this line is a section, it is functionally not part
+ # of this line and should not be included here.
+ #
+ if childText and childRole != pyatspi.ROLE_SECTION:
noChars = childText.characterCount
[cLine, cStart, cEnd] = \
childText.getTextAtOffset(noChars - 1, boundary)
@@ -7783,8 +7788,9 @@
start = cStart
else:
start += 1
- elif not child.getRole() in [pyatspi.ROLE_LINK,
- pyatspi.ROLE_IMAGE]:
+ elif not childRole in [pyatspi.ROLE_LINK,
+ pyatspi.ROLE_IMAGE,
+ pyatspi.ROLE_SECTION]:
text = None
obj = child
else:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]