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

Unified Diff: chrome/browser/resources/chromeos/chromevox/walkers/layout_line_walker.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/walkers/layout_line_walker.js
diff --git a/chrome/browser/resources/chromeos/chromevox/walkers/layout_line_walker.js b/chrome/browser/resources/chromeos/chromevox/walkers/layout_line_walker.js
index 351f167f22226508984acb33eb36a1af364bff71..bc9315f18cb4f6cb47c16ce9b89c6e108d686c23 100644
--- a/chrome/browser/resources/chromeos/chromevox/walkers/layout_line_walker.js
+++ b/chrome/browser/resources/chromeos/chromevox/walkers/layout_line_walker.js
@@ -153,14 +153,12 @@ cvox.LayoutLineWalker.prototype.isVisualLineBreak_ = function(lSel, rSel) {
// Some ranges from the browser give us 0-sized rects (such as in the case of
// select's). Detect these cases and use a more reliable method (take the
// bounding rect of the actual element rather than the range).
- if (lRect.width == 0 &&
- lRect.height == 0 &&
+ if (lRect.width == 0 && lRect.height == 0 &&
lSel.end.node.nodeType == Node.ELEMENT_NODE) {
lRect = lSel.end.node.getBoundingClientRect();
}
- if (rRect.width == 0 &&
- rRect.height == 0 &&
+ if (rRect.width == 0 && rRect.height == 0 &&
rSel.start.node.nodeType == Node.ELEMENT_NODE) {
rRect = rSel.start.node.getBoundingClientRect();
}

Powered by Google App Engine
This is Rietveld 408576698