Bug 1346378 - Grid inspector toggle should appear for display: [inline-]grid declarations. r?jdescottes draft
authorGabriel Luong <gabriel.luong@gmail.com>
Fri, 10 Mar 2017 15:19:34 -0500
changeset 496880 2c74f03ede32aadb43253f501c5b9e6f5b52a658
parent 496879 1ed753667e0bbedc381c2322bcae5dc8a3f264d4
child 548732 b17998acfa39e74d5f8819ae80efc449eb0aa9f1
push id48725
push userbmo:gl@mozilla.com
push dateFri, 10 Mar 2017 20:20:48 +0000
reviewersjdescottes
bugs1346378
milestone55.0a1
Bug 1346378 - Grid inspector toggle should appear for display: [inline-]grid declarations. r?jdescottes MozReview-Commit-ID: BoxllsTqjQc
devtools/client/shared/output-parser.js
--- 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