Index: Source/devtools/front_end/elements/StylesSidebarPane.js |
diff --git a/Source/devtools/front_end/elements/StylesSidebarPane.js b/Source/devtools/front_end/elements/StylesSidebarPane.js |
index 6a42183aada574a0c3fa6d3d8dea608939d737bf..6a86aabf261143db6aa1859084dc5e6d9a3243a7 100644 |
--- a/Source/devtools/front_end/elements/StylesSidebarPane.js |
+++ b/Source/devtools/front_end/elements/StylesSidebarPane.js |
@@ -1871,8 +1871,6 @@ WebInspector.StylePropertiesSection.prototype = { |
return; |
} |
- var selectedNode = this._parentPane._node; |
- |
/** |
* @param {!WebInspector.CSSRule} newRule |
* @this {WebInspector.StylePropertiesSection} |
@@ -1892,7 +1890,7 @@ WebInspector.StylePropertiesSection.prototype = { |
this.rule = newRule; |
this.styleRule = { section: this, style: newRule.style, selectorText: newRule.selectorText, media: newRule.media, rule: newRule }; |
- this._parentPane.update(selectedNode); |
+ this._parentPane._refreshUpdate(this, false); |
this._parentPane._styleSheetRuleEdited(this.rule, oldSelectorRange, this.rule.selectorRange); |
finishOperationAndMoveEditor.call(this, moveDirection); |
@@ -1910,6 +1908,7 @@ WebInspector.StylePropertiesSection.prototype = { |
// This gets deleted in finishOperationAndMoveEditor(), which is called both on success and failure. |
this._parentPane._userOperation = true; |
+ var selectedNode = this._parentPane._node; |
this._parentPane._target.cssModel.setRuleSelector(this.rule, selectedNode ? selectedNode.id : 0, newContent, successCallback.bind(this), finishOperationAndMoveEditor.bind(this, moveDirection)); |
}, |