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 2262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2273 this._expandElement.className = "expand-element"; | 2273 this._expandElement.className = "expand-element"; |
| 2274 | 2274 |
| 2275 var propertyRenderer = new WebInspector.StylesSidebarPropertyRenderer(th is._styleRule.rule(), this.node(), this.name, this.value); | 2275 var propertyRenderer = new WebInspector.StylesSidebarPropertyRenderer(th is._styleRule.rule(), this.node(), this.name, this.value); |
| 2276 if (this.property.parsedOk) { | 2276 if (this.property.parsedOk) { |
| 2277 propertyRenderer.setColorHandler(this._processColor.bind(this)); | 2277 propertyRenderer.setColorHandler(this._processColor.bind(this)); |
| 2278 propertyRenderer.setBezierHandler(this._processBezier.bind(this)); | 2278 propertyRenderer.setBezierHandler(this._processBezier.bind(this)); |
| 2279 } | 2279 } |
| 2280 | 2280 |
| 2281 this.listItemElement.removeChildren(); | 2281 this.listItemElement.removeChildren(); |
| 2282 this.nameElement = propertyRenderer.renderName(); | 2282 this.nameElement = propertyRenderer.renderName(); |
| 2283 this.nameElement.title = this.property.propertyText; | |
|
pfeldman
2015/08/19 19:08:42
This one I am fine with.
| |
| 2284 this.valueElement = propertyRenderer.renderValue(); | 2283 this.valueElement = propertyRenderer.renderValue(); |
| 2285 if (!this.treeOutline) | 2284 if (!this.treeOutline) |
| 2286 return; | 2285 return; |
| 2287 | 2286 |
| 2288 var indent = WebInspector.moduleSetting("textEditorIndent").get(); | 2287 var indent = WebInspector.moduleSetting("textEditorIndent").get(); |
| 2289 this.listItemElement.createChild("span", "styles-clipboard-only").create TextChild(indent + (this.property.disabled ? "/* " : "")); | 2288 this.listItemElement.createChild("span", "styles-clipboard-only").create TextChild(indent + (this.property.disabled ? "/* " : "")); |
| 2290 this.listItemElement.appendChild(this.nameElement); | 2289 this.listItemElement.appendChild(this.nameElement); |
| 2291 this.listItemElement.createTextChild(": "); | 2290 this.listItemElement.createTextChild(": "); |
| 2292 this.listItemElement.appendChild(this._expandElement); | 2291 this.listItemElement.appendChild(this._expandElement); |
| 2293 this.listItemElement.appendChild(this.valueElement); | 2292 this.listItemElement.appendChild(this.valueElement); |
| (...skipping 947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3241 | 3240 |
| 3242 /** | 3241 /** |
| 3243 * @override | 3242 * @override |
| 3244 * @return {?WebInspector.ToolbarItem} | 3243 * @return {?WebInspector.ToolbarItem} |
| 3245 */ | 3244 */ |
| 3246 item: function() | 3245 item: function() |
| 3247 { | 3246 { |
| 3248 return this._button; | 3247 return this._button; |
| 3249 } | 3248 } |
| 3250 } | 3249 } |
| OLD | NEW |