orca r4329 - in branches/gnome-2-24: . src/orca/scripts/toolkits/Gecko
- From: joanied svn gnome org
- To: svn-commits-list gnome org
- Subject: orca r4329 - in branches/gnome-2-24: . src/orca/scripts/toolkits/Gecko
- Date: Sat, 8 Nov 2008 18:53:31 +0000 (UTC)
Author: joanied
Date: Sat Nov 8 18:53:30 2008
New Revision: 4329
URL: http://svn.gnome.org/viewvc/orca?rev=4329&view=rev
Log:
* src/orca/scripts/toolkits/Gecko/script.py:
Fix for bug #555055 - Orca should be able to navigate
http://www.modernthaisf.com/gpage.html.
Modified:
branches/gnome-2-24/ChangeLog
branches/gnome-2-24/src/orca/scripts/toolkits/Gecko/script.py
Modified: branches/gnome-2-24/src/orca/scripts/toolkits/Gecko/script.py
==============================================================================
--- branches/gnome-2-24/src/orca/scripts/toolkits/Gecko/script.py (original)
+++ branches/gnome-2-24/src/orca/scripts/toolkits/Gecko/script.py Sat Nov 8 18:53:30 2008
@@ -5626,6 +5626,20 @@
nextObj = self.findNextObject(nextObj, documentFrame)
nextOffset = 0
+ # On a page which contains tables which are not only nested, but
+ # are surrounded by line break characters and/or embedded within
+ # a paragraph or span, there's an excellent chance that we'll skip
+ # right over the nested content. See bug #555055. If we can detect
+ # this condition, we should set the nextOffset to the EOC which
+ # represents the nested content before findNextCaretInOrder does
+ # its thing.
+ #
+ if nextOffset == 0 \
+ and self.getCharacterAtOffset(nextObj, nextOffset) == "\n" \
+ and self.getCharacterAtOffset(nextObj, nextOffset + 1) == \
+ self.EMBEDDED_OBJECT_CHARACTER:
+ nextOffset += 1
+
[nextObj, nextOffset] = \
self.findNextCaretInOrder(nextObj, max(0, nextOffset) - 1)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]