Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/tree_walker.js |
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/tree_walker.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/tree_walker.js |
index 268ce13edb8180be10d43907391dd8c2d030836a..a2b5d60360b02580398443b54b809307490056bf 100644 |
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/tree_walker.js |
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/tree_walker.js |
@@ -108,10 +108,10 @@ AutomationTreeWalker = function(node, dir, opt_restrictions) { |
}; |
/** @type {AutomationPredicate.Unary} @private */ |
this.leafPred_ = restrictions.leaf ? restrictions.leaf : |
- AutomationTreeWalker.falsePredicate_; |
+ AutomationTreeWalker.falsePredicate_; |
/** @type {AutomationPredicate.Unary} @private */ |
this.rootPred_ = restrictions.root ? restrictions.root : |
- AutomationTreeWalker.falsePredicate_; |
+ AutomationTreeWalker.falsePredicate_; |
/** @const {boolean} @private */ |
this.skipInitialAncestry_ = restrictions.skipInitialAncestry || false; |
/** @const {boolean} @private */ |
@@ -194,8 +194,7 @@ AutomationTreeWalker.prototype = { |
// Exit if we encounter a root-like node and are not searching descendants |
// of the initial node. |
- if (searchNode.parent && |
- this.rootPred_(searchNode.parent) && |
+ if (searchNode.parent && this.rootPred_(searchNode.parent) && |
this.phase_ != AutomationTreeWalkerPhase.DESCENDANT) |
break; |