Bug 1308577 - remove last require("chrome") from inspector; r?gregtatum draft
authorTom Tromey <tom@tromey.com>
Fri, 07 Oct 2016 12:10:21 -0600
changeset 422269 40217745f2efc5c32c90da599d70a4ff825aed5d
parent 422268 a0789005be29dfe48a4905b9b158640c67e78f23
child 533282 7f03e05d6dcd19834da4e018b7686a26e31b1c0f
push id31716
push userbmo:ttromey@mozilla.com
push dateFri, 07 Oct 2016 18:12:33 +0000
reviewersgregtatum
bugs1308577
milestone52.0a1
Bug 1308577 - remove last require("chrome") from inspector; r?gregtatum MozReview-Commit-ID: 7Nlz1jvTSxX
devtools/client/inspector/rules/models/text-property.js
--- a/devtools/client/inspector/rules/models/text-property.js
+++ b/devtools/client/inspector/rules/models/text-property.js
@@ -1,28 +1,18 @@
 /* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
 /* vim: set ts=2 et sw=2 tw=80: */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 "use strict";
 
-/* eslint-disable mozilla/reject-some-requires */
-const {Cc, Ci} = require("chrome");
-/* eslint-enable mozilla/reject-some-requires */
 const {escapeCSSComment} = require("devtools/shared/css/parsing-utils");
 const {getCssProperties} = require("devtools/shared/fronts/css-properties");
-/* eslint-disable mozilla/reject-some-requires */
-const {XPCOMUtils} = require("resource://gre/modules/XPCOMUtils.jsm");
-/* eslint-enable mozilla/reject-some-requires */
-
-XPCOMUtils.defineLazyGetter(this, "domUtils", function () {
-  return Cc["@mozilla.org/inspector/dom-utils;1"].getService(Ci.inIDOMUtils);
-});
 
 /**
  * TextProperty is responsible for the following:
  *   Manages a single property from the authoredText attribute of the
  *     relevant declaration.
  *   Maintains a list of computed properties that come from this
  *     property declaration.
  *   Changes to the TextProperty are sent to its related Rule for