Index: Source/devtools/front_end/InplaceFormatterEditorAction.js |
diff --git a/Source/devtools/front_end/InplaceFormatterEditorAction.js b/Source/devtools/front_end/InplaceFormatterEditorAction.js |
index 7a21020c9c7b71e4ed57bde4079182b2ccaec80d..7c22631469d47d6e4395476d5d74a0d915869d2e 100644 |
--- a/Source/devtools/front_end/InplaceFormatterEditorAction.js |
+++ b/Source/devtools/front_end/InplaceFormatterEditorAction.js |
@@ -66,7 +66,10 @@ WebInspector.InplaceFormatterEditorAction.prototype = { |
*/ |
_isFormattable: function(uiSourceCode) |
{ |
- return !!uiSourceCode && uiSourceCode.contentType() === WebInspector.resourceTypes.Stylesheet; |
+ if (!uiSourceCode) |
+ return false; |
+ return uiSourceCode.contentType() === WebInspector.resourceTypes.Stylesheet || |
+ uiSourceCode.project().type() === WebInspector.projectTypes.Snippets; |
pfeldman
2014/03/03 14:44:55
weird indent.
|
}, |
_formatSourceInPlace: function() |