Bug 1290234 - remove uses of nsIDOMNode constants from inspector; r=gregtatum
authorTom Tromey <tom@tromey.com>
Thu, 28 Jul 2016 14:03:50 -0600
changeset 332492 76de1a35ddb7c4ec9ec33adc97d3abb87ddb5c78
parent 332491 f351e9f3e564f2f3f025664e1f701a151c61e1bb
child 332493 3252e497b11121619545351a731f9b24885d5028
push id9858
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 14:37:10 +0000
treeherdermozilla-aurora@203106ef6cb6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgregtatum
bugs1290234
milestone50.0a1
Bug 1290234 - remove uses of nsIDOMNode constants from inspector; r=gregtatum MozReview-Commit-ID: G73Dn8shdkp
devtools/client/inspector/markup/markup.js
--- a/devtools/client/inspector/markup/markup.js
+++ b/devtools/client/inspector/markup/markup.js
@@ -894,19 +894,19 @@ MarkupView.prototype = {
 
           // If we can't move as the user wants, we move to the other direction.
           // If there is no sibling elements anymore, move to the parent node.
           if (!focusNode) {
             focusNode = nextSibling || prevSibling || parent;
           }
 
           let isNextSiblingText = nextSibling ?
-            nextSibling.nodeType === Ci.nsIDOMNode.TEXT_NODE : false;
+            nextSibling.nodeType === nodeConstants.TEXT_NODE : false;
           let isPrevSiblingText = prevSibling ?
-            prevSibling.nodeType === Ci.nsIDOMNode.TEXT_NODE : false;
+            prevSibling.nodeType === nodeConstants.TEXT_NODE : false;
 
           // If the parent had two children and the next or previous sibling
           // is a text node, then it now has only a single text node, is about
           // to be in-lined; and focus should move to the parent.
           if (parent.numChildren === 2
               && (isNextSiblingText || isPrevSiblingText)) {
             focusNode = parent;
           }