| Index: third_party/WebKit/Source/devtools/front_end/sdk/CSSMatchedStyles.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/CSSMatchedStyles.js b/third_party/WebKit/Source/devtools/front_end/sdk/CSSMatchedStyles.js
|
| index 85c8251e2f760de847e4483d312222ef7a55c055..f4cc534cdd57d176dabc2efa201e137562ad18b9 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/sdk/CSSMatchedStyles.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/sdk/CSSMatchedStyles.js
|
| @@ -306,6 +306,20 @@ SDK.CSSMatchedStyles = class {
|
| }
|
|
|
| /**
|
| + * @return {!Array<string>}
|
| + */
|
| + cssVariables() {
|
| + var cssVariables = [];
|
| + for (var style of this.nodeStyles()) {
|
| + for (var property of style.allProperties()) {
|
| + if (property.name.startsWith('--'))
|
| + cssVariables.push(property.name);
|
| + }
|
| + }
|
| + return cssVariables;
|
| + }
|
| +
|
| + /**
|
| * @param {!SDK.CSSStyleDeclaration} style
|
| * @return {boolean}
|
| */
|
|
|