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

Unified Diff: Source/devtools/front_end/TimelinePanel.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/ThreadsToolbar.js ('k') | Source/devtools/front_end/TimelineView.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/TimelinePanel.js
diff --git a/Source/devtools/front_end/TimelinePanel.js b/Source/devtools/front_end/TimelinePanel.js
index 2198a4248dff0f08e61a859726a286effced3e1c..b0bed26dfd23801f43c1c401d440a6e0e72b8464 100644
--- a/Source/devtools/front_end/TimelinePanel.js
+++ b/Source/devtools/front_end/TimelinePanel.js
@@ -401,7 +401,7 @@ WebInspector.TimelinePanel.prototype = {
_onFiltersToggled: function(event)
{
var toggled = /** @type {boolean} */ (event.data);
- this._filtersContainer.enableStyleClass("hidden", !toggled);
+ this._filtersContainer.classList.toggle("hidden", !toggled);
this.doResize();
},
@@ -894,8 +894,8 @@ WebInspector.TimelineDetailsView.prototype = {
*/
setVertical: function(vertical)
{
- this._contentElement.enableStyleClass("hbox", !vertical);
- this._contentElement.enableStyleClass("vbox", vertical);
+ this._contentElement.classList.toggle("hbox", !vertical);
+ this._contentElement.classList.toggle("vbox", vertical);
},
__proto__: WebInspector.View.prototype
« no previous file with comments | « Source/devtools/front_end/ThreadsToolbar.js ('k') | Source/devtools/front_end/TimelineView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698