[orca] Only filter sizeless elements if they lack text
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Only filter sizeless elements if they lack text
- Date: Mon, 12 Oct 2015 23:00:39 +0000 (UTC)
commit 2889af076e6d1e40176841647dd958fc2a9b1704
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Oct 12 18:58:17 2015 -0400
Only filter sizeless elements if they lack text
src/orca/scripts/web/script_utilities.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index 04f89e2..396ee7d 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -1682,7 +1682,7 @@ class Utilities(script_utilities.Utilities):
if (self.isTextBlockElement(obj) and not string.strip()) \
or self.isAnchor(obj) \
- or self.hasNoSize(obj) \
+ or (self.hasNoSize(obj) and not string.strip()) \
or self.isOffScreenLabel(obj) \
or self.isUselessImage(obj) \
or self.isLabellingContents(x, contents):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]