Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1222)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/elements/ElementsPanel.js

Issue 1907263002: DevTools: Fix all outstanding JavaScript style issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove yoda disable. fix throw parens Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698