orca r4326 - in trunk: . src/orca/scripts/toolkits/Gecko
- From: joanied svn gnome org
- To: svn-commits-list gnome org
- Subject: orca r4326 - in trunk: . src/orca/scripts/toolkits/Gecko
- Date: Fri, 7 Nov 2008 21:47:19 +0000 (UTC)
Author: joanied
Date: Fri Nov 7 21:47:19 2008
New Revision: 4326
URL: http://svn.gnome.org/viewvc/orca?rev=4326&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:
trunk/ChangeLog
trunk/src/orca/scripts/toolkits/Gecko/script.py
Modified: trunk/src/orca/scripts/toolkits/Gecko/script.py
==============================================================================
--- trunk/src/orca/scripts/toolkits/Gecko/script.py (original)
+++ trunk/src/orca/scripts/toolkits/Gecko/script.py Fri Nov 7 21:47:19 2008
@@ -5713,6 +5713,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]