| 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 2109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2120 | 2120 |
| 2121 /** | 2121 /** |
| 2122 * @override | 2122 * @override |
| 2123 */ | 2123 */ |
| 2124 oncollapse() { | 2124 oncollapse() { |
| 2125 this._updateExpandElement(); | 2125 this._updateExpandElement(); |
| 2126 } | 2126 } |
| 2127 | 2127 |
| 2128 _updateExpandElement() { | 2128 _updateExpandElement() { |
| 2129 if (this.expanded) | 2129 if (this.expanded) |
| 2130 this._expandElement.setIconType('smallicon-triangle-bottom'); | 2130 this._expandElement.setIconType('smallicon-triangle-down'); |
| 2131 else | 2131 else |
| 2132 this._expandElement.setIconType('smallicon-triangle-right'); | 2132 this._expandElement.setIconType('smallicon-triangle-right'); |
| 2133 } | 2133 } |
| 2134 | 2134 |
| 2135 updateTitle() { | 2135 updateTitle() { |
| 2136 this._updateState(); | 2136 this._updateState(); |
| 2137 this._expandElement = UI.Icon.create('smallicon-triangle-right', 'expand-ico
n'); | 2137 this._expandElement = UI.Icon.create('smallicon-triangle-right', 'expand-ico
n'); |
| 2138 | 2138 |
| 2139 var propertyRenderer = | 2139 var propertyRenderer = |
| 2140 new Elements.StylesSidebarPropertyRenderer(this._style.parentRule, this.
node(), this.name, this.value); | 2140 new Elements.StylesSidebarPropertyRenderer(this._style.parentRule, this.
node(), this.name, this.value); |
| (...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3080 } | 3080 } |
| 3081 | 3081 |
| 3082 /** | 3082 /** |
| 3083 * @override | 3083 * @override |
| 3084 * @return {!UI.ToolbarItem} | 3084 * @return {!UI.ToolbarItem} |
| 3085 */ | 3085 */ |
| 3086 item() { | 3086 item() { |
| 3087 return this._button; | 3087 return this._button; |
| 3088 } | 3088 } |
| 3089 }; | 3089 }; |
| OLD | NEW |