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 d6e45ebaa6c2dea15b13fe611ee041b9beb955d4..11f11c8f397bbf4492033f2b3eec72a014205c65 100644 |
--- a/Source/devtools/front_end/elements/StylesSidebarPane.js |
+++ b/Source/devtools/front_end/elements/StylesSidebarPane.js |
@@ -1138,6 +1138,7 @@ WebInspector.StylePropertiesSection = function(parentPane, styleRule, editable, |
if (this.editable && this.rule) { |
var newRuleButton = closeBrace.createChild("div", "sidebar-pane-button-new-rule"); |
+ newRuleButton.title = WebInspector.UIString("Insert Style Rule"); |
newRuleButton.addEventListener("click", this._onNewRuleClick.bind(this), false); |
} |
@@ -1889,7 +1890,8 @@ WebInspector.ComputedStylePropertiesSection.prototype = { |
*/ |
WebInspector.BlankStylePropertiesSection = function(stylesPane, defaultSelectorText, styleSheetId, ruleLocation, insertAfterRule) |
{ |
- WebInspector.StylePropertiesSection.call(this, stylesPane, {selectorText: defaultSelectorText, rule: {isViaInspector: true}}, true, false); |
+ var styleSheetHeader = WebInspector.cssModel.styleSheetHeaderForId(styleSheetId); |
+ WebInspector.StylePropertiesSection.call(this, stylesPane, {selectorText: defaultSelectorText, rule: {isViaInspector: styleSheetHeader.isViaInspector()}}, true, false); |
this._ruleLocation = ruleLocation; |
this._styleSheetId = styleSheetId; |
if (insertAfterRule) |