Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6283)

Unified Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js

Issue 2164813003: Fix visible position calculation in accessible setSelection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert ChromeVox workaround and update test Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js
index 07b29e4bfd9de8221fbb343220cf9ee1a7c9ad2b..4ec0925ceb125611205c9fe10defe69178bc1521 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js
@@ -185,16 +185,6 @@ AutomationPredicate.leafOrStaticText = function(node) {
};
/**
- * Matches against all nodes that have selectable text.
- * @param {!AutomationNode} node
- * @return {boolean}
- */
-AutomationPredicate.text = function(node) {
- return node.role == RoleType.staticText ||
- node.role == RoleType.lineBreak;
-};
-
-/**
* Matches against nodes visited during object navigation. An object as
* defined below, are all nodes that are focusable or static text. When used in
* tree walking, it should visit all nodes that tab traversal would as well as

Powered by Google App Engine
This is Rietveld 408576698