| Index: third_party/WebKit/Source/devtools/front_end/sdk/CSSStyleModel.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/CSSStyleModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/CSSStyleModel.js
|
| index d71659df86be9f6d4a93f71172a10d9327c6f246..584b54a9fbe971ba6b23be933244af239bc8fbbc 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/sdk/CSSStyleModel.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/sdk/CSSStyleModel.js
|
| @@ -1439,9 +1439,9 @@ WebInspector.CSSProperty.prototype = {
|
| function processToken(token, tokenType, column, newColumn)
|
| {
|
| if (!insideProperty) {
|
| - var isDisabledProperty = tokenType && tokenType.includes("css-comment") && token.includes(":");
|
| + var disabledProperty = tokenType && tokenType.includes("css-comment") && isDisabledProperty(token);
|
| var isPropertyStart = tokenType && (tokenType.includes("css-meta") || tokenType.includes("css-property") || tokenType.includes("css-variable-2"));
|
| - if (isDisabledProperty) {
|
| + if (disabledProperty) {
|
| result = result.trimRight() + indentation + token;
|
| } else if (isPropertyStart) {
|
| insideProperty = true;
|
| @@ -1461,6 +1461,19 @@ WebInspector.CSSProperty.prototype = {
|
| propertyText += token;
|
| }
|
| }
|
| +
|
| + /**
|
| + * @param {string} text
|
| + * @return {boolean}
|
| + */
|
| + function isDisabledProperty(text)
|
| + {
|
| + var colon = text.indexOf(":");
|
| + if (colon === -1)
|
| + return false;
|
| + var propertyName = text.substring(2, colon).trim();
|
| + return WebInspector.CSSMetadata.isCSSPropertyName(propertyName);
|
| + }
|
| },
|
|
|
| /**
|
|
|