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

Unified Diff: Source/devtools/front_end/FilterBar.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/Drawer.js ('k') | Source/devtools/front_end/FilteredItemSelectionDialog.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/FilterBar.js
diff --git a/Source/devtools/front_end/FilterBar.js b/Source/devtools/front_end/FilterBar.js
index 11169cf271476fd500763901de8f1faacfcb59f8..d6be7cb2e08293773260ddd2f970031b94ed5d78 100644
--- a/Source/devtools/front_end/FilterBar.js
+++ b/Source/devtools/front_end/FilterBar.js
@@ -491,7 +491,7 @@ WebInspector.NamedBitSetFilterUI.prototype = {
this._allowedTypes[WebInspector.NamedBitSetFilterUI.ALL_TYPES] = true;
}
for (var typeName in this._typeFilterElements)
- this._typeFilterElements[typeName].enableStyleClass("selected", this._allowedTypes[typeName]);
+ this._typeFilterElements[typeName].classList.toggle("selected", this._allowedTypes[typeName]);
this.dispatchEventToListeners(WebInspector.FilterUI.Events.FilterChanged, null);
},
@@ -685,7 +685,7 @@ WebInspector.CheckboxFilterUI.prototype = {
_update: function()
{
- this._checkElement.enableStyleClass("checkbox-filter-checkbox-checked", this._checked);
+ this._checkElement.classList.toggle("checkbox-filter-checkbox-checked", this._checked);
this.dispatchEventToListeners(WebInspector.FilterUI.Events.FilterChanged, null);
},
« no previous file with comments | « Source/devtools/front_end/Drawer.js ('k') | Source/devtools/front_end/FilteredItemSelectionDialog.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698