Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2009 Joseph Pecoraro | 3 * Copyright (C) 2009 Joseph Pecoraro |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 2264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2275 this._expandElement.className = "expand-element"; | 2275 this._expandElement.className = "expand-element"; |
| 2276 | 2276 |
| 2277 var propertyRenderer = new WebInspector.StylesSidebarPropertyRenderer(th is._styleRule.rule(), this.node(), this.name, this.value); | 2277 var propertyRenderer = new WebInspector.StylesSidebarPropertyRenderer(th is._styleRule.rule(), this.node(), this.name, this.value); |
| 2278 if (this.property.parsedOk) { | 2278 if (this.property.parsedOk) { |
| 2279 propertyRenderer.setColorHandler(this._processColor.bind(this)); | 2279 propertyRenderer.setColorHandler(this._processColor.bind(this)); |
| 2280 propertyRenderer.setBezierHandler(this._processBezier.bind(this)); | 2280 propertyRenderer.setBezierHandler(this._processBezier.bind(this)); |
| 2281 } | 2281 } |
| 2282 | 2282 |
| 2283 this.listItemElement.removeChildren(); | 2283 this.listItemElement.removeChildren(); |
| 2284 this.nameElement = propertyRenderer.renderName(); | 2284 this.nameElement = propertyRenderer.renderName(); |
| 2285 this.nameElement.title = this.property.propertyText; | |
|
paulirish
2015/08/03 16:26:20
If someone has forced colors to render as HSL, the
| |
| 2286 this.valueElement = propertyRenderer.renderValue(); | 2285 this.valueElement = propertyRenderer.renderValue(); |
| 2287 if (!this.treeOutline) | 2286 if (!this.treeOutline) |
| 2288 return; | 2287 return; |
| 2289 | 2288 |
| 2290 var indent = WebInspector.moduleSetting("textEditorIndent").get(); | 2289 var indent = WebInspector.moduleSetting("textEditorIndent").get(); |
| 2291 this.listItemElement.createChild("span", "styles-clipboard-only").create TextChild(indent + (this.property.disabled ? "/* " : "")); | 2290 this.listItemElement.createChild("span", "styles-clipboard-only").create TextChild(indent + (this.property.disabled ? "/* " : "")); |
| 2292 this.listItemElement.appendChild(this.nameElement); | 2291 this.listItemElement.appendChild(this.nameElement); |
| 2293 this.listItemElement.createTextChild(": "); | 2292 this.listItemElement.createTextChild(": "); |
| 2294 this.listItemElement.appendChild(this._expandElement); | 2293 this.listItemElement.appendChild(this._expandElement); |
| 2295 this.listItemElement.appendChild(this.valueElement); | 2294 this.listItemElement.appendChild(this.valueElement); |
| (...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3248 | 3247 |
| 3249 /** | 3248 /** |
| 3250 * @override | 3249 * @override |
| 3251 * @return {?WebInspector.ToolbarItem} | 3250 * @return {?WebInspector.ToolbarItem} |
| 3252 */ | 3251 */ |
| 3253 item: function() | 3252 item: function() |
| 3254 { | 3253 { |
| 3255 return this._button; | 3254 return this._button; |
| 3256 } | 3255 } |
| 3257 } | 3256 } |
| OLD | NEW |