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

Unified Diff: chrome/browser/resources/chromeos/chromevox/common/group_util.js

Issue 2939273002: DO NOT SUBMIT: what chrome/browser/resources/ could eventually look like with clang-format (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/common/group_util.js
diff --git a/chrome/browser/resources/chromeos/chromevox/common/group_util.js b/chrome/browser/resources/chromeos/chromevox/common/group_util.js
index d2a8ff1959b30af8515b30d74ea5dd6a2bd00fe9..d487cfc51111ad1885f00aec34c9199442830186 100644
--- a/chrome/browser/resources/chromeos/chromevox/common/group_util.js
+++ b/chrome/browser/resources/chromeos/chromevox/common/group_util.js
@@ -60,10 +60,10 @@ cvox.GroupUtil.BREAKOUT_SELECTOR_ = 'blockquote,' +
'tr,' +
'ul,' +
'math,' +
- // This takes care of MathJax expressions.
+ // This takes care of MathJax expressions.
'span.math,' +
-// TODO (sorge) Do we want to group all math or only display math?
-// '[mode="display"],' +
+ // TODO (sorge) Do we want to group all math or only display math?
+ // '[mode="display"],' +
// Aria widget roles
'[role~="alert ' +
'alertdialog ' +
@@ -119,8 +119,8 @@ cvox.GroupUtil.isLeafNode = function(node) {
}
if (!cvox.DomUtil.isSemanticElt(node)) {
- var breakingNodes = node.querySelectorAll(
- cvox.GroupUtil.BREAKOUT_SELECTOR_);
+ var breakingNodes =
+ node.querySelectorAll(cvox.GroupUtil.BREAKOUT_SELECTOR_);
for (var i = 0; i < breakingNodes.length; ++i) {
if (cvox.DomUtil.hasContent(breakingNodes[i])) {
@@ -135,8 +135,7 @@ cvox.GroupUtil.isLeafNode = function(node) {
}
var content = cvox.DomUtil.collapseWhitespace(
- cvox.DomUtil.getValue(node) + ' ' +
- cvox.DomUtil.getName(node));
+ cvox.DomUtil.getValue(node) + ' ' + cvox.DomUtil.getName(node));
if (content.length > cvox.GroupUtil.MAX_CHARCOUNT_) {
return false;
}

Powered by Google App Engine
This is Rietveld 408576698