| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> | 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> |
| 4 * Copyright (C) 2009 Joseph Pecoraro | 4 * Copyright (C) 2009 Joseph Pecoraro |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 this._currentToolbarPane.detach(); | 155 this._currentToolbarPane.detach(); |
| 156 widget.show(this._toolbarPaneElement); | 156 widget.show(this._toolbarPaneElement); |
| 157 this._currentToolbarPane = widget; | 157 this._currentToolbarPane = widget; |
| 158 this._currentToolbarPane.focus(); | 158 this._currentToolbarPane.focus(); |
| 159 return; | 159 return; |
| 160 } | 160 } |
| 161 | 161 |
| 162 this._animatedToolbarPane = widget; | 162 this._animatedToolbarPane = widget; |
| 163 | 163 |
| 164 if (this._currentToolbarPane) | 164 if (this._currentToolbarPane) |
| 165 this._toolbarPaneElement.style.animationName = 'styles-element-state
-pane-slideout'; | 165 this._toolbarPaneElement.style.animationName = "styles-element-state
-pane-slideout"; |
| 166 else if (widget) | 166 else if (widget) |
| 167 this._toolbarPaneElement.style.animationName = 'styles-element-state
-pane-slidein'; | 167 this._toolbarPaneElement.style.animationName = "styles-element-state
-pane-slidein"; |
| 168 | 168 |
| 169 if (widget) | 169 if (widget) |
| 170 widget.show(this._toolbarPaneElement); | 170 widget.show(this._toolbarPaneElement); |
| 171 | 171 |
| 172 var listener = onAnimationEnd.bind(this); | 172 var listener = onAnimationEnd.bind(this); |
| 173 this._toolbarPaneElement.addEventListener("animationend", listener, fals
e); | 173 this._toolbarPaneElement.addEventListener("animationend", listener, fals
e); |
| 174 | 174 |
| 175 /** | 175 /** |
| 176 * @this {WebInspector.ElementsPanel} | 176 * @this {WebInspector.ElementsPanel} |
| 177 */ | 177 */ |
| 178 function onAnimationEnd() | 178 function onAnimationEnd() |
| 179 { | 179 { |
| 180 this._toolbarPaneElement.style.removeProperty('animation-name'); | 180 this._toolbarPaneElement.style.removeProperty("animation-name"); |
| 181 this._toolbarPaneElement.removeEventListener("animationend", listene
r, false); | 181 this._toolbarPaneElement.removeEventListener("animationend", listene
r, false); |
| 182 | 182 |
| 183 if (this._currentToolbarPane) | 183 if (this._currentToolbarPane) |
| 184 this._currentToolbarPane.detach(); | 184 this._currentToolbarPane.detach(); |
| 185 | 185 |
| 186 this._currentToolbarPane = this._animatedToolbarPane; | 186 this._currentToolbarPane = this._animatedToolbarPane; |
| 187 if (this._currentToolbarPane) | 187 if (this._currentToolbarPane) |
| 188 this._currentToolbarPane.focus(); | 188 this._currentToolbarPane.focus(); |
| 189 delete this._animatedToolbarPane; | 189 delete this._animatedToolbarPane; |
| 190 | 190 |
| (...skipping 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1287 */ | 1287 */ |
| 1288 wasShown: function() | 1288 wasShown: function() |
| 1289 { | 1289 { |
| 1290 this._toolbarItem.setToggled(true); | 1290 this._toolbarItem.setToggled(true); |
| 1291 this._nodeChanged(); | 1291 this._nodeChanged(); |
| 1292 WebInspector.ThrottledWidget.prototype.wasShown.call(this); | 1292 WebInspector.ThrottledWidget.prototype.wasShown.call(this); |
| 1293 }, | 1293 }, |
| 1294 | 1294 |
| 1295 __proto__: WebInspector.ThrottledWidget.prototype | 1295 __proto__: WebInspector.ThrottledWidget.prototype |
| 1296 } | 1296 } |
| OLD | NEW |