Chromium Code Reviews| Index: third_party/WebKit/Source/core/inspector/browser_protocol.json |
| diff --git a/third_party/WebKit/Source/core/inspector/browser_protocol.json b/third_party/WebKit/Source/core/inspector/browser_protocol.json |
| index 95044d2ca4fd43b0c5365ccac549a28e15bca0d1..8c1989a99a965cf5a450c01bb741413a41468784 100644 |
| --- a/third_party/WebKit/Source/core/inspector/browser_protocol.json |
| +++ b/third_party/WebKit/Source/core/inspector/browser_protocol.json |
| @@ -2801,6 +2801,16 @@ |
| "description": "CSS rule representation." |
| }, |
| { |
| + "id": "RuleUsage", |
| + "type": "object", |
| + "properties": [ |
| + { "name": "styleSheetId", "$ref": "StyleSheetId", "description": "The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from." }, |
| + { "name": "range", "$ref": "SourceRange", "description": "Style declaration range in the enclosing stylesheet (if available)." }, |
| + { "name": "used", "type": "boolean", "description": "Indicates whether the rule was actually used by some element in the page." } |
| + ], |
| + "description": "CSS rule usage information." |
|
pfeldman
2016/11/02 18:38:26
"experimental": true
|
| + }, |
| + { |
| "id": "SourceRange", |
| "type": "object", |
| "properties": [ |
| @@ -3170,6 +3180,17 @@ |
| ], |
| "description": "For the main document and any content documents, return the LayoutTreeNodes and a whitelisted subset of the computed style. It only returns pushed nodes, on way to pull all nodes is to call DOM.getDocument with a depth of -1.", |
| "experimental": true |
| + }, |
| + { |
| + "name": "startRuleUsageTracking", |
| + "description": "Enables the selector recording." |
| + }, |
| + { |
| + "name": "stopRuleUsageTracking", |
| + "returns": [ |
| + { "name": "CSSRules", "type": "array", "items": { "$ref": "RuleUsage" } } |
|
pfeldman
2016/11/02 18:38:26
Rename "CSSRules" to "ruleUsage"
|
| + ], |
| + "description": "The list of rules with an indication of whether these were used" |
| } |
| ], |
| "events": [ |