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

Unified Diff: Source/devtools/front_end/elements/Spectrum.js

Issue 731093002: DevTools: Use View.registerRequiredCSS() in View-based web components (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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/elements/Spectrum.js
diff --git a/Source/devtools/front_end/elements/Spectrum.js b/Source/devtools/front_end/elements/Spectrum.js
index 918f80c48a39b748ec74fd9dbffebc636aa620d2..effbdc30ae50df2296c1b71f440685fb476f3cad 100644
--- a/Source/devtools/front_end/elements/Spectrum.js
+++ b/Source/devtools/front_end/elements/Spectrum.js
@@ -33,7 +33,7 @@
WebInspector.Spectrum = function()
{
WebInspector.VBox.call(this, true);
- this.contentElement.appendChild(WebInspector.View.createStyleElement("elements/spectrum.css"));
+ this.registerRequiredCSS("elements/spectrum.css");
this.contentElement.tabIndex = 0;
this._draggerElement = this.contentElement.createChild("div", "spectrum-color");
« no previous file with comments | « Source/devtools/front_end/elements/ElementsBreadcrumbs.js ('k') | Source/devtools/front_end/ui/FlameChart.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698