| Index: third_party/WebKit/Source/devtools/front_end/sources/InplaceFormatterEditorAction.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/sources/InplaceFormatterEditorAction.js b/third_party/WebKit/Source/devtools/front_end/sources/InplaceFormatterEditorAction.js
|
| index 6d2c45bb9d9775507401db5df26a8a08e98f0da5..3e75ba07fc53b110365ce12248bc2a9b6341c163 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/sources/InplaceFormatterEditorAction.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/sources/InplaceFormatterEditorAction.js
|
| @@ -88,7 +88,7 @@ Sources.InplaceFormatterEditorAction = class {
|
| /**
|
| * @this {Sources.InplaceFormatterEditorAction}
|
| * @param {string} formattedContent
|
| - * @param {!Sources.FormatterSourceMapping} formatterMapping
|
| + * @param {!Workspace.UISourceCode.SourceMapping} formatterMapping
|
| */
|
| function innerCallback(formattedContent, formatterMapping) {
|
| if (uiSourceCode.workingCopy() === formattedContent)
|
| @@ -99,7 +99,8 @@ Sources.InplaceFormatterEditorAction = class {
|
| var selection = sourceFrame.selection();
|
| start = formatterMapping.originalToFormatted(selection.startLine, selection.startColumn);
|
| }
|
| - uiSourceCode.setWorkingCopy(formattedContent);
|
| + uiSourceCode.setWorkingCopy(formattedContent, Workspace.UISourceCode.SourceMapping.create(
|
| + formatterMapping._originalLineEndings, formatterMapping._formattedLineEndings, formatterMapping._mapping));
|
| this._sourcesView.showSourceLocation(uiSourceCode, start[0], start[1]);
|
| }
|
| }
|
|
|