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

Unified Diff: Source/devtools/front_end/CPUProfileView.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 | « no previous file | Source/devtools/front_end/CanvasProfileView.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/CPUProfileView.js
diff --git a/Source/devtools/front_end/CPUProfileView.js b/Source/devtools/front_end/CPUProfileView.js
index 84ea753d2a3684279769067145403979e3745f69..a5dcaca774960d7c053e9c90099493d52746ac8f 100644
--- a/Source/devtools/front_end/CPUProfileView.js
+++ b/Source/devtools/front_end/CPUProfileView.js
@@ -416,7 +416,7 @@ WebInspector.CPUProfileView.prototype = {
this.dataGrid.detach();
this._flameChart.show(this.element);
this._viewType.set(WebInspector.CPUProfileView._TypeFlame);
- this._statusBarButtonsElement.enableStyleClass("hidden", true);
+ this._statusBarButtonsElement.classList.toggle("hidden", true);
return;
case WebInspector.CPUProfileView._TypeTree:
this.profileDataGridTree = this._getTopDownProfileDataGridTree();
@@ -430,7 +430,7 @@ WebInspector.CPUProfileView.prototype = {
break;
}
- this._statusBarButtonsElement.enableStyleClass("hidden", false);
+ this._statusBarButtonsElement.classList.toggle("hidden", false);
if (this._flameChart)
this._flameChart.detach();
« no previous file with comments | « no previous file | Source/devtools/front_end/CanvasProfileView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698