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

Side by Side Diff: Source/devtools/front_end/ScriptFormatterEditorAction.js

Issue 182113004: DevTools: Get rid of Element.prototype.enableStyleClass (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaselined Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/PlatformFontsSidebarPane.js ('k') | Source/devtools/front_end/SearchableView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698