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

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

Issue 2085433003: Ignore listMarker nodes and sync from left to right after a jump command. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: m Created 4 years, 6 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_util.js
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_util.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_util.js
index 354a58fc962212e71e3381f6fea0096027f73ced..4821a332f4833688fd7da90f6ac979a270a6d260 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_util.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_util.js
@@ -34,7 +34,7 @@ AutomationUtil.findNodePre = function(cur, dir, pred) {
if (!cur)
return null;
- if (pred(cur))
+ if (pred(cur) && !AutomationPredicate.shouldIgnoreNode(cur))
return cur;
var child = dir == Dir.BACKWARD ? cur.lastChild : cur.firstChild;
@@ -69,7 +69,7 @@ AutomationUtil.findNodePost = function(cur, dir, pred) {
child.previousSibling : child.nextSibling;
}
- if (pred(cur))
+ if (pred(cur) && !AutomationPredicate.shouldIgnoreNode(cur))
return cur;
return null;

Powered by Google App Engine
This is Rietveld 408576698