Chromium Code Reviews| 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..3d31acf787f710200a26de689b2afa4eb6e5a410 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.tooltip = WebInspector.UIString("Insert New Rule"); |
|
pfeldman
2014/08/13 15:47:18
We do all caps or not based on the platform (see o
|
| 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) |