[orca/gnome-3-14] Do not generate new node level for text block elements



commit 0e42c91c98022170ecc22be5dd4d394f0add39bb
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Fri Sep 12 15:51:06 2014 -0400

    Do not generate new node level for text block elements

 .../scripts/toolkits/Gecko/speech_generator.py     |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/speech_generator.py 
b/src/orca/scripts/toolkits/Gecko/speech_generator.py
index 51a6738..c7d46b5 100644
--- a/src/orca/scripts/toolkits/Gecko/speech_generator.py
+++ b/src/orca/scripts/toolkits/Gecko/speech_generator.py
@@ -419,6 +419,13 @@ class SpeechGenerator(speech_generator.SpeechGenerator):
             if attribute.startswith(attributeName):
                 return attribute.split(":")[1]
 
+    def _generateNewNodeLevel(self, obj, **args):
+        if self._script.utilities.isTextBlockElement(obj):
+            return []
+
+        return speech_generator.SpeechGenerator._generateNewNodeLevel(
+            self, obj, **args)
+
     def _generatePositionInList(self, obj, **args):
         if self._script.utilities.isTextBlockElement(obj):
             return []


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]