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

Unified Diff: Source/devtools/front_end/OverridesView.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/NetworkPanel.js ('k') | Source/devtools/front_end/PlatformFontsSidebarPane.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/OverridesView.js
diff --git a/Source/devtools/front_end/OverridesView.js b/Source/devtools/front_end/OverridesView.js
index a4a39c5dadaf72ee6a196dcb4ed70d9e677ec82a..4609ab85490b2bfcf86790fb299ea4d3d8872240 100644
--- a/Source/devtools/front_end/OverridesView.js
+++ b/Source/devtools/front_end/OverridesView.js
@@ -70,7 +70,7 @@ WebInspector.OverridesView.prototype = {
_overridesWarningUpdated: function()
{
var message = WebInspector.overridesSupport.warningMessage();
- this._warningFooter.enableStyleClass("hidden", !message);
+ this._warningFooter.classList.toggle("hidden", !message);
this._warningFooter.textContent = message;
},
@@ -110,7 +110,7 @@ WebInspector.OverridesView.Tab.prototype = {
var active = false;
for (var i = 0; !active && i < this._settings.length; ++i)
active = this._settings[i].get();
- this._tabbedPane.element.enableStyleClass("overrides-activate-" + this._id, active);
+ this._tabbedPane.element.classList.toggle("overrides-activate-" + this._id, active);
this._tabbedPane.changeTabTitle(this._id, active ? this._name + " \u2713" : this._name);
},
« no previous file with comments | « Source/devtools/front_end/NetworkPanel.js ('k') | Source/devtools/front_end/PlatformFontsSidebarPane.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698