Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Unified Diff: third_party/WebKit/Source/core/inspector/browser_protocol.json

Issue 2455943003: Backend for css rule tracking (Closed)
Patch Set: Backend for css rule tracking Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..f7c8189aefc6a165f87560c4a500513ea1c0ebbd 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": ["Charset", "Style", "Import", "Media", "FontFace", "Page", "Keyframes", "Keyframe", "Namespace", "Supports", "Viewport"] },
+ { "name": "status", "type": "boolean", "description": "Indicates whether the rule was actually used by some element in the page." }
caseq 2016/10/31 19:06:06 "used" instead of "status"?
+ ],
+ "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": [

Powered by Google App Engine
This is Rietveld 408576698