| Index: Source/devtools/front_end/StylesSidebarPane.js
|
| diff --git a/Source/devtools/front_end/StylesSidebarPane.js b/Source/devtools/front_end/StylesSidebarPane.js
|
| index e8c85871427b575b8848b39d8d9f06a511043447..e39bff7c77191f233190e141b6b70b5f981a899c 100644
|
| --- a/Source/devtools/front_end/StylesSidebarPane.js
|
| +++ b/Source/devtools/front_end/StylesSidebarPane.js
|
| @@ -1697,7 +1697,21 @@ WebInspector.BlankStylePropertiesSection.prototype = {
|
| if (newContent)
|
| newContent = newContent.trim();
|
| this._parentPane._userOperation = true;
|
| - WebInspector.cssModel.addRule(this.pane.node.id, newContent, successCallback.bind(this), this.editingSelectorCancelled.bind(this));
|
| +
|
| + WebInspector.cssModel.requestViaInspectorStylesheet(this.pane.node, viaInspectorCallback.bind(this));
|
| +
|
| + /**
|
| + * @this {WebInspector.BlankStylePropertiesSection}
|
| + * @param {?WebInspector.CSSStyleSheetHeader} styleSheetHeader
|
| + */
|
| + function viaInspectorCallback(styleSheetHeader)
|
| + {
|
| + if (!styleSheetHeader) {
|
| + this.editingSelectorCancelled();
|
| + return;
|
| + }
|
| + WebInspector.cssModel.addRule(styleSheetHeader.id, this.pane.node, newContent, successCallback.bind(this), this.editingSelectorCancelled.bind(this));
|
| + }
|
| },
|
|
|
| editingSelectorCancelled: function()
|
|
|