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

Unified Diff: Source/devtools/front_end/PlatformFontsSidebarPane.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
Index: Source/devtools/front_end/PlatformFontsSidebarPane.js
diff --git a/Source/devtools/front_end/PlatformFontsSidebarPane.js b/Source/devtools/front_end/PlatformFontsSidebarPane.js
index 29db225e5b1e4045b1710f3857978e215ceb639a..be44f171f6754e9dbda169ab15af284e6ec817fd 100644
--- a/Source/devtools/front_end/PlatformFontsSidebarPane.js
+++ b/Source/devtools/front_end/PlatformFontsSidebarPane.js
@@ -91,7 +91,7 @@ WebInspector.PlatformFontsSidebarPane.prototype = {
this._fontStatsSection.removeChildren();
var isEmptySection = !platformFonts || !platformFonts.length;
- this._sectionTitle.enableStyleClass("hidden", isEmptySection);
+ this._sectionTitle.classList.toggle("hidden", isEmptySection);
if (isEmptySection)
return;
platformFonts.sort(function (a, b) {
« no previous file with comments | « Source/devtools/front_end/OverridesView.js ('k') | Source/devtools/front_end/ScriptFormatterEditorAction.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698