| Index: Source/devtools/protocol.json
|
| diff --git a/Source/devtools/protocol.json b/Source/devtools/protocol.json
|
| index a416fc447e1c9073b6b8c7c98149cb8d92c31d2c..2109adf79ef4c03a1a08a51a70799909d4686abb 100644
|
| --- a/Source/devtools/protocol.json
|
| +++ b/Source/devtools/protocol.json
|
| @@ -2644,7 +2644,20 @@
|
| { "name": "styleSheetId", "$ref": "StyleSheetId" },
|
| { "name": "text", "type": "string" }
|
| ],
|
| - "description": "Sets the new stylesheet text, thereby invalidating all existing <code>CSSStyleId</code>'s and <code>CSSRuleId</code>'s contained by this stylesheet."
|
| + "description": "Sets the new stylesheet text. This will invalidate all existing <code>CSSStyleId</code>s and <code>CSSRuleId</code>s contained by this stylesheet."
|
| + },
|
| + {
|
| + "name": "editRangeInStyleSheetText",
|
| + "parameters": [
|
| + { "name": "styleSheetId", "$ref": "StyleSheetId" },
|
| + { "name": "range", "$ref": "SourceRange", "description": "Source range to be replaced in stylesheet text." },
|
| + { "name": "text", "type": "string", "description": "Text that will replace given range in the stylesheet text." }
|
| + ],
|
| + "returns": [
|
| + { "name": "rule", "$ref": "CSSRule", "optional": true, "description": "The resulting rule after the selector modification." },
|
| + { "name": "style", "$ref": "CSSStyle", "optional": true, "description": "The updated style which the editing was scoped to." }
|
| + ],
|
| + "description": "Replace stylesheet text range with a new text. This will invalidate all existing <code>CSSStyleId</code>s and <code>CSSRuleId</code>s contained by this stylesheet."
|
| },
|
| {
|
| "name": "setPropertyText",
|
|
|