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

Unified Diff: Source/devtools/front_end/CanvasProfileView.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, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/devtools/front_end/CPUProfileView.js ('k') | Source/devtools/front_end/CodeMirrorTextEditor.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/CanvasProfileView.js
diff --git a/Source/devtools/front_end/CanvasProfileView.js b/Source/devtools/front_end/CanvasProfileView.js
index 6197d90ef734c753348fa5aaf85b34a1ab39c82b..767b32311da5f25908586e02af24eb4ae1eae13d 100644
--- a/Source/devtools/front_end/CanvasProfileView.js
+++ b/Source/devtools/front_end/CanvasProfileView.js
@@ -274,8 +274,8 @@ WebInspector.CanvasProfileView.prototype = {
*/
_enableWaitIcon: function(enable)
{
- this._spinnerIcon.enableStyleClass("hidden", !enable);
- this._debugInfoElement.enableStyleClass("hidden", enable);
+ this._spinnerIcon.classList.toggle("hidden", !enable);
+ this._debugInfoElement.classList.toggle("hidden", enable);
},
_replayTraceLog: function()
@@ -908,7 +908,7 @@ WebInspector.CanvasProfileType.prototype = {
_dispatchViewUpdatedEvent: function()
{
- this._frameSelector.element.enableStyleClass("hidden", this._frameSelector.size() <= 1);
+ this._frameSelector.element.classList.toggle("hidden", this._frameSelector.size() <= 1);
this.dispatchEventToListeners(WebInspector.ProfileType.Events.ViewUpdated);
},
« no previous file with comments | « Source/devtools/front_end/CPUProfileView.js ('k') | Source/devtools/front_end/CodeMirrorTextEditor.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698