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

Unified Diff: third_party/WebKit/Source/devtools/front_end/elements/PlatformFontsWidget.js

Issue 1809773002: DevTools: split platformFontsWidget.css out of elementsPanel.css (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 9 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: third_party/WebKit/Source/devtools/front_end/elements/PlatformFontsWidget.js
diff --git a/third_party/WebKit/Source/devtools/front_end/elements/PlatformFontsWidget.js b/third_party/WebKit/Source/devtools/front_end/elements/PlatformFontsWidget.js
index 37134a3043bfbcd7d45770b657d0ecb7a9336009..19c7eb44c4e7451c949ed396976bc2633554088e 100644
--- a/third_party/WebKit/Source/devtools/front_end/elements/PlatformFontsWidget.js
+++ b/third_party/WebKit/Source/devtools/front_end/elements/PlatformFontsWidget.js
@@ -35,16 +35,16 @@
*/
WebInspector.PlatformFontsWidget = function(sharedModel)
{
- WebInspector.ThrottledWidget.call(this);
- this.element.classList.add("platform-fonts");
+ WebInspector.ThrottledWidget.call(this, true);
+ this.registerRequiredCSS("elements/platformFontsWidget.css");
this._sharedModel = sharedModel;
this._sharedModel.addEventListener(WebInspector.SharedSidebarModel.Events.ComputedStyleChanged, this.update, this);
- this._sectionTitle = createElementWithClass("div", "sidebar-separator");
- this.element.appendChild(this._sectionTitle);
+ this._sectionTitle = createElementWithClass("div", "title");
+ this.contentElement.appendChild(this._sectionTitle);
this._sectionTitle.textContent = WebInspector.UIString("Rendered Fonts");
- this._fontStatsSection = this.element.createChild("div", "stats-section");
+ this._fontStatsSection = this.contentElement.createChild("div", "stats-section");
}
/**

Powered by Google App Engine
This is Rietveld 408576698