Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Unified Diff: Source/devtools/front_end/elements/StylesSidebarPane.js

Issue 468973002: DevTools: [SSP] fix design glitches in "Insert New Rule" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: insert rule title consistent with SSP Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/devtools/front_end/elementsPanel.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « no previous file | Source/devtools/front_end/elementsPanel.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698