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

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

Issue 2943193002: Run clang-format on .js files in c/b/r/chromeos/chromevox (Closed)
Patch Set: Created 3 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/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;

Powered by Google App Engine
This is Rietveld 408576698