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

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

Issue 2312353002: Revert of Add support for rich output inside of content editables. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@editable_nav
Patch Set: Created 4 years, 3 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/cursors.js
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js
index 65011670b96af423c7a0aa6d3ec300dad4d7d324..974e0a4f0d7313363085ca4bd8f2a114a191d849 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js
@@ -140,8 +140,7 @@
if (!this.node)
return null;
- if (this.node.role == RoleType.inlineTextBox ||
- this.index_ == cursors.NODE_INDEX)
+ if (this.node.role == RoleType.inlineTextBox)
return this.node.parent;
return this.node;
@@ -166,7 +165,9 @@
sibling = sibling.previousSibling;
}
} else if (this.index_ == cursors.NODE_INDEX) {
- adjustedIndex = this.node.indexInParent + 1;
+ // Indicies of this kind are buggy. Set it to 0 (different than the DOM
+ // index in parent convention).
+ adjustedIndex = 0;
}
return adjustedIndex;
},

Powered by Google App Engine
This is Rietveld 408576698