| 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 2205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2216 this._expandElement.className = "expand-element"; | 2216 this._expandElement.className = "expand-element"; |
| 2217 | 2217 |
| 2218 var propertyRenderer = new WebInspector.StylesSidebarPropertyRenderer(th
is._styleRule.rule(), this.node(), this.name, this.value); | 2218 var propertyRenderer = new WebInspector.StylesSidebarPropertyRenderer(th
is._styleRule.rule(), this.node(), this.name, this.value); |
| 2219 if (this.property.parsedOk) { | 2219 if (this.property.parsedOk) { |
| 2220 propertyRenderer.setColorHandler(this._processColor.bind(this)); | 2220 propertyRenderer.setColorHandler(this._processColor.bind(this)); |
| 2221 propertyRenderer.setBezierHandler(this._processBezier.bind(this)); | 2221 propertyRenderer.setBezierHandler(this._processBezier.bind(this)); |
| 2222 } | 2222 } |
| 2223 | 2223 |
| 2224 this.listItemElement.removeChildren(); | 2224 this.listItemElement.removeChildren(); |
| 2225 this.nameElement = propertyRenderer.renderName(); | 2225 this.nameElement = propertyRenderer.renderName(); |
| 2226 this.nameElement.title = this.property.propertyText; | |
| 2227 this.valueElement = propertyRenderer.renderValue(); | 2226 this.valueElement = propertyRenderer.renderValue(); |
| 2228 if (!this.treeOutline) | 2227 if (!this.treeOutline) |
| 2229 return; | 2228 return; |
| 2230 | 2229 |
| 2231 var indent = WebInspector.moduleSetting("textEditorIndent").get(); | 2230 var indent = WebInspector.moduleSetting("textEditorIndent").get(); |
| 2232 this.listItemElement.createChild("span", "styles-clipboard-only").create
TextChild(indent + (this.property.disabled ? "/* " : "")); | 2231 this.listItemElement.createChild("span", "styles-clipboard-only").create
TextChild(indent + (this.property.disabled ? "/* " : "")); |
| 2233 this.listItemElement.appendChild(this.nameElement); | 2232 this.listItemElement.appendChild(this.nameElement); |
| 2234 this.listItemElement.createTextChild(": "); | 2233 this.listItemElement.createTextChild(": "); |
| 2235 this.listItemElement.appendChild(this._expandElement); | 2234 this.listItemElement.appendChild(this._expandElement); |
| 2236 this.listItemElement.appendChild(this.valueElement); | 2235 this.listItemElement.appendChild(this.valueElement); |
| (...skipping 947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3184 | 3183 |
| 3185 /** | 3184 /** |
| 3186 * @override | 3185 * @override |
| 3187 * @return {?WebInspector.ToolbarItem} | 3186 * @return {?WebInspector.ToolbarItem} |
| 3188 */ | 3187 */ |
| 3189 item: function() | 3188 item: function() |
| 3190 { | 3189 { |
| 3191 return this._button; | 3190 return this._button; |
| 3192 } | 3191 } |
| 3193 } | 3192 } |
| OLD | NEW |