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

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

Issue 138173004: DevTools: [Styles] Display color swatch for editable styles (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/StylesSidebarPane.js
diff --git a/Source/devtools/front_end/StylesSidebarPane.js b/Source/devtools/front_end/StylesSidebarPane.js
index 0e6a43946146e2c2125b0e7bf569a3ec4b1d4818..1c2160e90436538a1338d86696a30d59f2ac0df0 100644
--- a/Source/devtools/front_end/StylesSidebarPane.js
+++ b/Source/devtools/front_end/StylesSidebarPane.js
@@ -1956,7 +1956,7 @@ WebInspector.StylePropertyTreeElementBase.prototype = {
var spectrumHelper = this.editablePane() && this.editablePane()._spectrumHelper;
var spectrum = spectrumHelper ? spectrumHelper.spectrum() : null;
- var isEditable = !!(this._styleRule && this._styleRule.editable);
+ var isEditable = !!(this._styleRule && this._styleRule.editable !== false); // |editable| is true by default.
var colorSwatch = new WebInspector.ColorSwatch(!isEditable);
colorSwatch.setColorString(text);
colorSwatch.element.addEventListener("click", swatchClick.bind(this), false);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698