Bug 1274609 - Replace uses of Ci.nsIDOMNodeFilter constants. r=jlongster

MozReview-Commit-ID: 1OeiMaVZ7tm
This commit is contained in:
Joseph Yeh
2016-07-11 20:28:00 +02:00
parent 1d0221d71e
commit 1341d9ee45
7 changed files with 50 additions and 22 deletions

View File

@@ -6,6 +6,7 @@
const { Ci, Cc } = require("chrome");
const { memoize } = require("sdk/lang/functional");
const nodeFilterConstants = require("devtools/shared/dom-node-filter-constants");
loader.lazyRequireGetter(this, "setIgnoreLayoutChanges", "devtools/server/actors/layout", true);
exports.setIgnoreLayoutChanges = (...args) =>
@@ -377,7 +378,7 @@ function safelyGetContentWindow(frame) {
.createInstance(Ci.inIDeepTreeWalker);
walker.showSubDocuments = true;
walker.showDocumentsAsNodes = true;
walker.init(frame, Ci.nsIDOMNodeFilter.SHOW_ALL);
walker.init(frame, nodeFilterConstants.SHOW_ALL);
walker.currentNode = frame;
let document = walker.nextNode();