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

Unified Diff: third_party/WebKit/Source/devtools/protocol.json

Issue 1694433003: DevTools: [CSS] Add CSS.setMultipleStyleTexts command to CSS domain (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 10 months 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/devtools/protocol.json
diff --git a/third_party/WebKit/Source/devtools/protocol.json b/third_party/WebKit/Source/devtools/protocol.json
index 594698d6c47fda2a6d1b16326581597816263f0d..153dc8ef04189d8018843266212da85b7d96e491 100644
--- a/third_party/WebKit/Source/devtools/protocol.json
+++ b/third_party/WebKit/Source/devtools/protocol.json
@@ -3174,6 +3174,16 @@
{ "name": "style", "$ref": "CSSStyle", "description": "Associated style declaration." }
],
"description": "CSS keyframe rule representation."
+ },
+ {
+ "id": "StyleDeclarationEdit",
+ "type": "object",
+ "properties": [
+ { "name": "styleSheetId", "$ref": "StyleSheetId", "description": "The css style sheet identifier." },
+ { "name": "range", "$ref": "SourceRange", "description": "The range of the style text in the enclosing stylesheet." },
+ { "name": "text", "type": "string", "description": "New style text."}
+ ],
+ "description": "A descriptor of operation to mutate style declaration text."
}
],
"commands": [
@@ -3279,16 +3289,14 @@
"description": "Modifies the keyframe rule key text."
},
{
- "name": "setStyleText",
+ "name": "setStyleTexts",
"parameters": [
- { "name": "styleSheetId", "$ref": "StyleSheetId" },
- { "name": "range", "$ref": "SourceRange" },
- { "name": "text", "type": "string" }
+ { "name": "edits", "type": "array", "items": { "$ref": "StyleDeclarationEdit" }}
],
"returns": [
- { "name": "style", "$ref": "CSSStyle", "description": "The resulting style after the selector modification." }
+ { "name": "styles", "type": "array", "items": { "$ref": "CSSStyle" }, "description": "The resulting styles after modification." }
],
- "description": "Modifies the style text."
+ "description": "Applies specified style edits one after another in the given order."
},
{
"name": "setMediaText",

Powered by Google App Engine
This is Rietveld 408576698