Chromium Code Reviews| Index: third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js |
| diff --git a/third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js b/third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js |
| index 17bab00c98257cdb27b4cc039338c38c2106d968..fd191cabe8222b992dbded88579f56e2797d9c14 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js |
| @@ -368,7 +368,7 @@ WebInspector.ScriptFormatterEditorAction.prototype = { |
| function innerCallback(formattedContent, formatterMapping) |
| { |
| var scripts = this._scriptsForUISourceCode(uiSourceCode); |
| - var contentProvider = new WebInspector.StaticContentProvider(uiSourceCode.contentType(), formattedContent); |
| + var contentProvider = new WebInspector.StaticContentProvider(uiSourceCode.contentType(), formattedContent, uiSourceCode.contentURL()); |
|
dgozman
2016/05/09 21:55:35
uiSourceCode.url() + ":formatted"
lushnikov
2016/05/09 22:06:59
Done.
|
| var formattedUISourceCode = this._project.addContentProvider(uiSourceCode.url() + ":formatted", contentProvider); |
| var formattedPath = formattedUISourceCode.url(); |
| var formatData = new WebInspector.FormatterScriptMapping.FormatData(uiSourceCode.project().id(), uiSourceCode.url(), formatterMapping, scripts); |