| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @constructor | 6 * @constructor |
| 7 * @implements {WebInspector.SourceMapping} | 7 * @implements {WebInspector.SourceMapping} |
| 8 * @param {!WebInspector.Workspace} workspace | 8 * @param {!WebInspector.Workspace} workspace |
| 9 * @param {!WebInspector.DebuggerModel} debuggerModel | 9 * @param {!WebInspector.DebuggerModel} debuggerModel |
| 10 */ | 10 */ |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 if (wasSelected) | 282 if (wasSelected) |
| 283 this._updateButton(null); | 283 this._updateButton(null); |
| 284 this._discardFormattedUISourceCodeScript(uiSourceCode); | 284 this._discardFormattedUISourceCodeScript(uiSourceCode); |
| 285 }, | 285 }, |
| 286 | 286 |
| 287 /** | 287 /** |
| 288 * @param {?WebInspector.UISourceCode} uiSourceCode | 288 * @param {?WebInspector.UISourceCode} uiSourceCode |
| 289 */ | 289 */ |
| 290 _updateButton: function(uiSourceCode) | 290 _updateButton: function(uiSourceCode) |
| 291 { | 291 { |
| 292 this._button.element.enableStyleClass("hidden", !this._isFormatableScrip
t(uiSourceCode)); | 292 this._button.element.classList.toggle("hidden", !this._isFormatableScrip
t(uiSourceCode)); |
| 293 }, | 293 }, |
| 294 | 294 |
| 295 /** | 295 /** |
| 296 * @param {!WebInspector.SourcesPanel} panel | 296 * @param {!WebInspector.SourcesPanel} panel |
| 297 * @return {!Element} | 297 * @return {!Element} |
| 298 */ | 298 */ |
| 299 button: function(panel) | 299 button: function(panel) |
| 300 { | 300 { |
| 301 if (this._button) | 301 if (this._button) |
| 302 return this._button.element; | 302 return this._button.element; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 }, | 372 }, |
| 373 | 373 |
| 374 /** | 374 /** |
| 375 * @param {!WebInspector.UISourceCode} uiSourceCode | 375 * @param {!WebInspector.UISourceCode} uiSourceCode |
| 376 */ | 376 */ |
| 377 _discardFormattedUISourceCodeScript: function(uiSourceCode) | 377 _discardFormattedUISourceCodeScript: function(uiSourceCode) |
| 378 { | 378 { |
| 379 this._scriptMapping._discardFormattedUISourceCodeScript(uiSourceCode); | 379 this._scriptMapping._discardFormattedUISourceCodeScript(uiSourceCode); |
| 380 } | 380 } |
| 381 } | 381 } |
| OLD | NEW |