[orca] Speak "image link" for links whose content is canvas without fallback content
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Speak "image link" for links whose content is canvas without fallback content
- Date: Tue, 13 Oct 2015 04:28:43 +0000 (UTC)
commit 958ef879bba39474f6dba325b72a3033f183b268
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Oct 13 00:21:58 2015 -0400
Speak "image link" for links whose content is canvas without fallback content
src/orca/scripts/web/speech_generator.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/web/speech_generator.py b/src/orca/scripts/web/speech_generator.py
index 1c7710a..4f66dbd 100644
--- a/src/orca/scripts/web/speech_generator.py
+++ b/src/orca/scripts/web/speech_generator.py
@@ -276,6 +276,9 @@ class SpeechGenerator(speech_generator.SpeechGenerator):
result.append(messages.IMAGE_MAP_LINK)
result.extend(acss)
else:
+ if self._script.utilities.hasUselessCanvasDescendant(obj):
+ result.append(self.getLocalizedRoleName(obj, pyatspi.ROLE_IMAGE))
+ result.extend(acss)
result.append(self.getLocalizedRoleName(obj, role))
result.extend(acss)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]