Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/tree_walker.js |
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/tree_walker.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/tree_walker.js |
index 268ce13edb8180be10d43907391dd8c2d030836a..f947a066c4d1a248288fda4c48dcef89f11e5023 100644 |
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/tree_walker.js |
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/tree_walker.js |
@@ -88,7 +88,7 @@ |
* backward. |
* @type {chrome.automation.AutomationNode} @private |
*/ |
- this.backwardAncestor_ = node.parent || null; |
+ this.backwardAncestor_ = node.parent; |
var restrictions = opt_restrictions || {}; |
this.visitPred_ = function(node) { |
@@ -221,8 +221,8 @@ |
} |
if (node.parent && this.backwardAncestor_ == node.parent) { |
this.phase_ = AutomationTreeWalkerPhase.ANCESTOR; |
- this.backwardAncestor_ = node.parent.parent || null; |
- } |
- this.node_ = node.parent || null; |
+ this.backwardAncestor_ = node.parent.parent; |
+ } |
+ this.node_ = node.parent; |
} |
}; |