summaryrefslogtreecommitdiffstats
path: root/dom/chrome-webidl/InspectorUtils.webidl
diff options
context:
space:
mode:
Diffstat (limited to 'dom/chrome-webidl/InspectorUtils.webidl')
-rw-r--r--dom/chrome-webidl/InspectorUtils.webidl21
1 files changed, 12 insertions, 9 deletions
diff --git a/dom/chrome-webidl/InspectorUtils.webidl b/dom/chrome-webidl/InspectorUtils.webidl
index 64cd610804..b379118e8a 100644
--- a/dom/chrome-webidl/InspectorUtils.webidl
+++ b/dom/chrome-webidl/InspectorUtils.webidl
@@ -89,16 +89,24 @@ namespace InspectorUtils {
sequence<DOMString> getRegisteredCssHighlights(Document document, optional boolean activeOnly = false);
sequence<InspectorCSSPropertyDefinition> getCSSRegisteredProperties(Document document);
- // Get the start and end offsets of the first rule body within initialText
+ // Get the first rule body text within initialText
// Consider the following example:
// p {
// line-height: 2em;
// color: blue;
// }
- // Calling the function with the whole text above would return offsets we can use to
- // get "line-height: 2em; color: blue;"
+ // Calling the function with the whole text above would return:
+ // "line-height: 2em; color: blue;"
// Returns null when opening curly bracket wasn't found in initialText
- InspectorGetRuleBodyTextResult? getRuleBodyTextOffsets(UTF8String initialText);
+ UTF8String? getRuleBodyText(UTF8String initialText);
+
+ // Returns string where the rule body text at passed line and column in styleSheetText
+ // is replaced by newBodyText.
+ UTF8String? replaceBlockRuleBodyTextInStylesheet(
+ UTF8String styleSheetText,
+ unsigned long line,
+ unsigned long column,
+ UTF8String newBodyText);
};
dictionary SupportsOptions {
@@ -177,11 +185,6 @@ dictionary InspectorCSSPropertyDefinition {
required boolean fromJS;
};
-dictionary InspectorGetRuleBodyTextResult {
- required double startOffset;
- required double endOffset;
-};
-
dictionary InspectorStyleSheetRuleCountAndAtRulesResult {
required sequence<CSSRule> atRules;
required unsigned long ruleCount;