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 502a1da736bf9e3247eb4e30da4819b1f34e16f0..532d41a7112cf1ad92eaa30b98250e1850ac1953 100644 |
| --- a/third_party/WebKit/Source/core/inspector/browser_protocol.json |
| +++ b/third_party/WebKit/Source/core/inspector/browser_protocol.json |
| @@ -2765,6 +2765,17 @@ |
| "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": "ruleType", "type": "string", "optional": true, "enum": ["Style", "Charset", "Import", "Media", "FontFace", "Page", "Keyframes", "Keyframe", "Namespace", "Supports", "Viewport"] }, |
|
pfeldman
2016/10/31 21:03:36
Can we expose it when we need it?
|
| + { "name": "used", "type": "boolean", "description": "Indicates whether the rule was actually used by some element in the page." } |
| + ], |
| + "description": "CSS rule usage information." |
| + }, |
| + { |
| "id": "SourceRange", |
| "type": "object", |
| "properties": [ |
| @@ -3134,6 +3145,20 @@ |
| ], |
| "description": "For the main document and any content documents, return the LayoutTreeNodes and a whitelisted subset of the computed style.", |
| "experimental": true |
| + }, |
| + { |
| + "name": "setSelectorRecording", |
| + "parameters": [ |
| + { "name": "enable", "type": "boolean" } |
| + ], |
| + "description": "Enables the selector recording." |
| + }, |
| + { |
| + "name": "getRuleList", |
| + "returns": [ |
| + { "name": "CSSRules", "type": "array", "items": { "$ref": "RuleUsage" } } |
| + ], |
| + "description": "The list of rules with an indication of whether these were used" |
| } |
| ], |
| "events": [ |