| 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 2091 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2102 } | 2102 } |
| 2103 | 2103 |
| 2104 _resetMouseDownElement() { | 2104 _resetMouseDownElement() { |
| 2105 if (this._parentPane) { | 2105 if (this._parentPane) { |
| 2106 delete this._parentPane._mouseDownTreeElement; | 2106 delete this._parentPane._mouseDownTreeElement; |
| 2107 delete this._parentPane._mouseDownTreeElementIsName; | 2107 delete this._parentPane._mouseDownTreeElementIsName; |
| 2108 delete this._parentPane._mouseDownTreeElementIsValue; | 2108 delete this._parentPane._mouseDownTreeElementIsValue; |
| 2109 } | 2109 } |
| 2110 } | 2110 } |
| 2111 | 2111 |
| 2112 /** |
| 2113 * @override |
| 2114 */ |
| 2115 onexpand() { |
| 2116 this._updateExpandElement(); |
| 2117 } |
| 2118 |
| 2119 /** |
| 2120 * @override |
| 2121 */ |
| 2122 oncollapse() { |
| 2123 this._updateExpandElement(); |
| 2124 } |
| 2125 |
| 2126 _updateExpandElement() { |
| 2127 if (this.expanded) |
| 2128 this._expandElement.setIconType('smallicon-triangle-bottom'); |
| 2129 else |
| 2130 this._expandElement.setIconType('smallicon-triangle-right'); |
| 2131 } |
| 2132 |
| 2112 updateTitle() { | 2133 updateTitle() { |
| 2113 this._updateState(); | 2134 this._updateState(); |
| 2114 this._expandElement = createElement('span'); | 2135 this._expandElement = UI.Icon.create('smallicon-triangle-right', 'expand-ico
n'); |
| 2115 this._expandElement.className = 'expand-element'; | |
| 2116 | 2136 |
| 2117 var propertyRenderer = | 2137 var propertyRenderer = |
| 2118 new Elements.StylesSidebarPropertyRenderer(this._style.parentRule, this.
node(), this.name, this.value); | 2138 new Elements.StylesSidebarPropertyRenderer(this._style.parentRule, this.
node(), this.name, this.value); |
| 2119 if (this.property.parsedOk) { | 2139 if (this.property.parsedOk) { |
| 2120 propertyRenderer.setColorHandler(this._processColor.bind(this)); | 2140 propertyRenderer.setColorHandler(this._processColor.bind(this)); |
| 2121 propertyRenderer.setBezierHandler(this._processBezier.bind(this)); | 2141 propertyRenderer.setBezierHandler(this._processBezier.bind(this)); |
| 2122 propertyRenderer.setShadowHandler(this._processShadow.bind(this)); | 2142 propertyRenderer.setShadowHandler(this._processShadow.bind(this)); |
| 2123 } | 2143 } |
| 2124 | 2144 |
| 2125 this.listItemElement.removeChildren(); | 2145 this.listItemElement.removeChildren(); |
| (...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3058 } | 3078 } |
| 3059 | 3079 |
| 3060 /** | 3080 /** |
| 3061 * @override | 3081 * @override |
| 3062 * @return {!UI.ToolbarItem} | 3082 * @return {!UI.ToolbarItem} |
| 3063 */ | 3083 */ |
| 3064 item() { | 3084 item() { |
| 3065 return this._button; | 3085 return this._button; |
| 3066 } | 3086 } |
| 3067 }; | 3087 }; |
| OLD | NEW |