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

Unified Diff: Source/devtools/front_end/DataGrid.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/DOMExtension.js ('k') | Source/devtools/front_end/Drawer.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/DataGrid.js
diff --git a/Source/devtools/front_end/DataGrid.js b/Source/devtools/front_end/DataGrid.js
index fd0524e49827396ac6a5aecc2e2573f9e072692a..24d650e1ece2b64eb1476bd7ec594ae22994fa25 100644
--- a/Source/devtools/front_end/DataGrid.js
+++ b/Source/devtools/front_end/DataGrid.js
@@ -689,7 +689,7 @@ WebInspector.DataGrid.prototype = {
return;
this.columns[columnIdentifier].hidden = !visible;
- this.element.enableStyleClass("hide-" + columnIdentifier + "-column", !visible);
+ this.element.classList.toggle("hide-" + columnIdentifier + "-column", !visible);
},
get scrollContainer()
@@ -1250,8 +1250,8 @@ WebInspector.DataGridNode.prototype = {
if (!this._element)
return;
- this._element.enableStyleClass("parent", this._hasChildren);
- this._element.enableStyleClass("expanded", this._hasChildren && this.expanded);
+ this._element.classList.toggle("parent", this._hasChildren);
+ this._element.classList.toggle("expanded", this._hasChildren && this.expanded);
},
get hasChildren()
@@ -1267,7 +1267,7 @@ WebInspector.DataGridNode.prototype = {
this._revealed = x;
if (this._element)
- this._element.enableStyleClass("revealed", this._revealed);
+ this._element.classList.toggle("revealed", this._revealed);
for (var i = 0; i < this.children.length; ++i)
this.children[i].revealed = x && this.expanded;
« no previous file with comments | « Source/devtools/front_end/DOMExtension.js ('k') | Source/devtools/front_end/Drawer.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698