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

Unified Diff: chrome/browser/resources/chromeos/chromevox/common/content_editable_extractor.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/common/content_editable_extractor.js
diff --git a/chrome/browser/resources/chromeos/chromevox/common/content_editable_extractor.js b/chrome/browser/resources/chromeos/chromevox/common/content_editable_extractor.js
index ce0d9415f0d71d17deea72a6387e59747a217f59..f0f8dfffd8df2da92ea45cca05982825513664db 100644
--- a/chrome/browser/resources/chromeos/chromevox/common/content_editable_extractor.js
+++ b/chrome/browser/resources/chromeos/chromevox/common/content_editable_extractor.js
@@ -103,11 +103,8 @@ cvox.ContentEditableExtractor.prototype.update = function(element) {
continue;
}
- if (lastBottom !== null &&
- rect.bottom != lastBottom &&
- textSize > 0 &&
- text.substr(-1).match(/\S/) &&
- c.match(/\S/)) {
+ if (lastBottom !== null && rect.bottom != lastBottom && textSize > 0 &&
+ text.substr(-1).match(/\S/) && c.match(/\S/)) {
text += '\n';
textSize++;
}
@@ -120,8 +117,7 @@ cvox.ContentEditableExtractor.prototype.update = function(element) {
}
}
- if (!setStart &&
- selectionStartIndex == -1 &&
+ if (!setStart && selectionStartIndex == -1 &&
endCursor.node == selectionStart.node &&
endCursor.index >= selectionStart.index) {
if (endCursor.index > selectionStart.index) {
@@ -130,8 +126,7 @@ cvox.ContentEditableExtractor.prototype.update = function(element) {
setStart = true;
}
}
- if (!setEnd &&
- selectionEndIndex == -1 &&
+ if (!setEnd && selectionEndIndex == -1 &&
endCursor.node == selectionEnd.node &&
endCursor.index >= selectionEnd.index) {
if (endCursor.index > selectionEnd.index) {

Powered by Google App Engine
This is Rietveld 408576698