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

Unified Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_util.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/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 77e323a14752985d737cac8886ee92d4ac9c179a..6d60261cb2d67221d68afebbac27582948f51215 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_util.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_util.js
@@ -42,8 +42,7 @@ AutomationUtil.findNodePre = function(cur, dir, pred) {
var ret = AutomationUtil.findNodePre(child, dir, pred);
if (ret)
return ret;
- child = dir == Dir.BACKWARD ?
- child.previousSibling : child.nextSibling;
+ child = dir == Dir.BACKWARD ? child.previousSibling : child.nextSibling;
}
return null;
};
@@ -65,8 +64,7 @@ AutomationUtil.findNodePost = function(cur, dir, pred) {
var ret = AutomationUtil.findNodePost(child, dir, pred);
if (ret)
return ret;
- child = dir == Dir.BACKWARD ?
- child.previousSibling : child.nextSibling;
+ child = dir == Dir.BACKWARD ? child.previousSibling : child.nextSibling;
}
if (pred(cur) && !AutomationPredicate.shouldIgnoreNode(cur))
@@ -101,10 +99,12 @@ AutomationUtil.findNodePost = function(cur, dir, pred) {
*/
AutomationUtil.findNextNode = function(cur, dir, pred, opt_restrictions) {
var restrictions = {};
- opt_restrictions = opt_restrictions || {leaf: undefined,
- root: undefined,
- visit: undefined,
- skipInitialSubtree: !AutomationPredicate.container(cur) && pred(cur)};
+ opt_restrictions = opt_restrictions || {
+ leaf: undefined,
+ root: undefined,
+ visit: undefined,
+ skipInitialSubtree: !AutomationPredicate.container(cur) && pred(cur)
+ };
restrictions.root = opt_restrictions.root || AutomationPredicate.root;
restrictions.leaf = opt_restrictions.leaf || function(node) {
@@ -288,10 +288,8 @@ AutomationUtil.getTopLevelRoot = function(node) {
if (!root || root.role == RoleType.DESKTOP)
return null;
- while (root &&
- root.parent &&
- root.parent.root &&
- root.parent.root.role != RoleType.DESKTOP) {
+ while (root && root.parent && root.parent.root &&
+ root.parent.root.role != RoleType.DESKTOP) {
root = root.parent.root;
}
return root;

Powered by Google App Engine
This is Rietveld 408576698