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

Unified Diff: Source/devtools/front_end/ThreadsToolbar.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/StylesSidebarPane.js ('k') | Source/devtools/front_end/TimelinePanel.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ThreadsToolbar.js
diff --git a/Source/devtools/front_end/ThreadsToolbar.js b/Source/devtools/front_end/ThreadsToolbar.js
index 0473543bd619215dfe47faaf4e0fabbcaa531c14..7279a73853208668adcf9c9ee4c50c2754b30a56 100644
--- a/Source/devtools/front_end/ThreadsToolbar.js
+++ b/Source/devtools/front_end/ThreadsToolbar.js
@@ -111,7 +111,7 @@ WebInspector.ThreadsToolbar.prototype = {
_alterVisibility: function()
{
var hidden = this._comboBox.size() === 1;
- this.element.enableStyleClass("hidden", hidden);
+ this.element.classList.toggle("hidden", hidden);
}
}
« no previous file with comments | « Source/devtools/front_end/StylesSidebarPane.js ('k') | Source/devtools/front_end/TimelinePanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698