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

Unified Diff: Source/devtools/front_end/InplaceFormatterEditorAction.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/FilteredItemSelectionDialog.js ('k') | Source/devtools/front_end/LayerTree.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/InplaceFormatterEditorAction.js
diff --git a/Source/devtools/front_end/InplaceFormatterEditorAction.js b/Source/devtools/front_end/InplaceFormatterEditorAction.js
index fa0013bdc5c4be852442d8e024f1800d723d92ae..9c7414dfd7f3800339dbe02717c30e1ad6125c60 100644
--- a/Source/devtools/front_end/InplaceFormatterEditorAction.js
+++ b/Source/devtools/front_end/InplaceFormatterEditorAction.js
@@ -36,7 +36,7 @@ WebInspector.InplaceFormatterEditorAction.prototype = {
*/
_updateButton: function(uiSourceCode)
{
- this._button.element.enableStyleClass("hidden", !this._isFormattable(uiSourceCode));
+ this._button.element.classList.toggle("hidden", !this._isFormattable(uiSourceCode));
},
/**
« no previous file with comments | « Source/devtools/front_end/FilteredItemSelectionDialog.js ('k') | Source/devtools/front_end/LayerTree.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698