Commit 338693a2 authored by vsevik@chromium.org's avatar vsevik@chromium.org

DevTools: Support inplace formatting for snippets.

R=pfeldman@chromium.org, pfeldman
BUG=347496

Review URL: https://codereview.chromium.org/176843007

git-svn-id: svn://svn.chromium.org/blink/trunk@168311 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 329e4ee2
......@@ -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;
},
_formatSourceInPlace: function()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment