[orca] Just rely on the superscript's clearTextSelection() for web content
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Just rely on the superscript's clearTextSelection() for web content
- Date: Mon, 26 Aug 2019 20:01:24 +0000 (UTC)
commit 4c49655e4fd7fb92cee3197f58d1c8858b6482c7
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Aug 26 15:59:07 2019 -0400
Just rely on the superscript's clearTextSelection() for web content
We were doing extra work to clear the text selection in web content
in anticipation of being able to have AT-SPI2-driven text selection
for web content. It turns out we cannot due to limitations in ATK
and assumptions of implementors. Therefore, don't bother doing the
extra work until we have a need to.
src/orca/scripts/web/script_utilities.py | 16 ----------------
1 file changed, 16 deletions(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index fa4e39271..9cfdd557d 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -4098,22 +4098,6 @@ class Utilities(script_utilities.Utilities):
return rv
- def clearTextSelection(self, obj):
- super().clearTextSelection(obj)
- if self.isDocument(obj):
- return
-
- # For performance reasons. If clearing the selection on a table doesn't
- # clear it, file a bug against the user agent in question.
- if self.getTable(obj):
- return
-
- try:
- for child in obj:
- self.clearTextSelection(child)
- except:
- pass
-
def clearCaretContext(self, documentFrame=None):
self.clearContentCache()
documentFrame = documentFrame or self.documentFrame()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]