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

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 95044d2ca4fd43b0c5365ccac549a28e15bca0d1..e67ae0a403a00c51c429f4aa70810c1728d05684 100644
--- a/third_party/WebKit/Source/core/inspector/browser_protocol.json
+++ b/third_party/WebKit/Source/core/inspector/browser_protocol.json
@@ -2801,6 +2801,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": "used", "type": "boolean", "description": "Indicates whether the rule was actually used by some element in the page." }
+ ],
+ "description": "CSS rule usage information.",
+ "experimental": true
+ },
+ {
"id": "SourceRange",
"type": "object",
"properties": [
@@ -3170,6 +3181,19 @@
],
"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.",
+ "experimental": true
+ },
+ {
+ "name": "stopRuleUsageTracking",
+ "returns": [
+ { "name": "ruleUsage", "type": "array", "items": { "$ref": "RuleUsage" } }
+ ],
+ "description": "The list of rules with an indication of whether these were used",
+ "experimental": true
}
],
"events": [

Powered by Google App Engine
This is Rietveld 408576698