Bug 1346378 - Grid inspector toggle should appear for display: [inline-]grid declarations. r?jdescottes
MozReview-Commit-ID: BoxllsTqjQc
--- a/devtools/client/shared/output-parser.js
+++ b/devtools/client/shared/output-parser.js
@@ -284,27 +284,24 @@ OutputParser.prototype = {
return result;
},
/**
* Return true if it's a display:[inline-]grid token.
*
* @param {String} text
* the parsed text.
- *
* @param {Object} token
* the parsed token.
- *
* @param {Object} options
* the options given to _parse.
*/
_isDisplayGrid: function (text, token, options) {
return options.expectDisplay &&
- (token.text === "grid" || token.text === "inline-grid") &&
- text === token.text;
+ (token.text === "grid" || token.text === "inline-grid");
},
/**
* Append a cubic-bezier timing function value to the output
*
* @param {String} bezier
* The cubic-bezier timing function
* @param {Object} options