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); |
}, |