[orca] Do not generate new node level for text block elements
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Do not generate new node level for text block elements
- Date: Fri, 12 Sep 2014 19:51:57 +0000 (UTC)
commit 64b067cd8c1b299c035bdd368e7796d4cf941c33
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]