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

Unified Diff: Source/devtools/front_end/ScriptFormatter.js

Issue 18347003: DevTools: Implement CSS pretty-printing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Comments addressed Created 7 years, 3 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/ScriptFormatter.js
diff --git a/Source/devtools/front_end/ScriptFormatter.js b/Source/devtools/front_end/ScriptFormatter.js
index 3eedeba27b7c6a04ee9488358ea4ab6b934b2ee8..98acbb5c8bab1a4d740f03af1594568330e17bbc 100644
--- a/Source/devtools/front_end/ScriptFormatter.js
+++ b/Source/devtools/front_end/ScriptFormatter.js
@@ -41,7 +41,7 @@ WebInspector.Formatter = function()
*/
WebInspector.Formatter.createFormatter = function(contentType)
{
- if (contentType === WebInspector.resourceTypes.Script || contentType === WebInspector.resourceTypes.Document)
+ if (contentType === WebInspector.resourceTypes.Script || contentType === WebInspector.resourceTypes.Document || contentType === WebInspector.resourceTypes.Stylesheet)
return new WebInspector.ScriptFormatter();
return new WebInspector.IdentityFormatter();
}
« no previous file with comments | « Source/devtools/front_end/JavaScriptFormatter.js ('k') | Source/devtools/front_end/ScriptFormatterWorker.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698