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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/InplaceFormatterEditorAction.js

Issue 2492343002: Devtools: Pretty print fix for CSS coverage decorations. (Closed)
Patch Set: Pretty print fix for CSS coverage decorations. Created 4 years, 1 month 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: 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..3ade5e57f6985c248d06ab2ef852f9ec026ee12d 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/InplaceFormatterEditorAction.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/InplaceFormatterEditorAction.js
@@ -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]);
}
}

Powered by Google App Engine
This is Rietveld 408576698