diff options
author | FranklinDM <mrmineshafter17@gmail.com> | 2022-04-09 15:24:26 +0800 |
---|---|---|
committer | FranklinDM <mrmineshafter17@gmail.com> | 2022-04-09 22:15:18 +0800 |
commit | bee1a6fe1c6e62e7ccbe89bb9bdcaf45e454fdd4 (patch) | |
tree | 896233f440e23e5dc6bdf08394e6d912637dea2f | |
parent | f9caae6cfde7b22fd37370365a540ed23f772ed6 (diff) | |
download | uxp-bee1a6fe1c6e62e7ccbe89bb9bdcaf45e454fdd4.tar.gz |
Issue #1838 - Follow-up: Remove grid preference check from developer tools
-rw-r--r-- | devtools/client/shared/output-parser.js | 4 | ||||
-rw-r--r-- | devtools/server/actors/highlighters/css-grid.js | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/devtools/client/shared/output-parser.js b/devtools/client/shared/output-parser.js index b4fb1c6aa9..1bd3700134 100644 --- a/devtools/client/shared/output-parser.js +++ b/devtools/client/shared/output-parser.js @@ -17,7 +17,6 @@ const { const Services = require("Services"); const HTML_NS = "http://www.w3.org/1999/xhtml"; -const CSS_GRID_ENABLED_PREF = "layout.css.grid.enabled"; /** * This module is used to process text for output by developer tools. This means @@ -207,8 +206,7 @@ OutputParser.prototype = { if (options.expectCubicBezier && BEZIER_KEYWORDS.indexOf(token.text) >= 0) { this._appendCubicBezier(token.text, options); - } else if (Services.prefs.getBoolPref(CSS_GRID_ENABLED_PREF) && - options.expectDisplay && token.text === "grid" && + } else if (options.expectDisplay && token.text === "grid" && text === token.text) { this._appendGrid(token.text, options); } else if (colorOK() && diff --git a/devtools/server/actors/highlighters/css-grid.js b/devtools/server/actors/highlighters/css-grid.js index 0ed1ee9614..09fc090cfa 100644 --- a/devtools/server/actors/highlighters/css-grid.js +++ b/devtools/server/actors/highlighters/css-grid.js @@ -19,7 +19,6 @@ const { } = require("devtools/shared/layout/utils"); const { stringifyGridFragments } = require("devtools/server/actors/utils/css-grid-utils"); -const CSS_GRID_ENABLED_PREF = "layout.css.grid.enabled"; const ROWS = "rows"; const COLUMNS = "cols"; const GRID_LINES_PROPERTIES = { @@ -292,7 +291,7 @@ CssGridHighlighter.prototype = extend(AutoRefreshHighlighter.prototype, { }, _show() { - if (Services.prefs.getBoolPref(CSS_GRID_ENABLED_PREF) && !this.isGrid()) { + if (!this.isGrid()) { this.hide(); return false; } |