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

Unified Diff: third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.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/workspace/UISourceCode.js
diff --git a/third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js b/third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js
index fff83b1dbd5d7b5996a6295f93f7bbae49450319..7e8ff41bd67127fc89aafe55e27a3f78cad06e56 100644
--- a/third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js
+++ b/third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js
@@ -447,11 +447,12 @@ Workspace.UISourceCode = class extends Common.Object {
/**
* @param {string} newWorkingCopy
+ * @param {!Workspace.UISourceCode.SourceMapping=} sourceMapping
*/
- setWorkingCopy(newWorkingCopy) {
+ setWorkingCopy(newWorkingCopy, sourceMapping) {
this._workingCopy = newWorkingCopy;
delete this._workingCopyGetter;
- this.dispatchEventToListeners(Workspace.UISourceCode.Events.WorkingCopyChanged);
+ this.dispatchEventToListeners(Workspace.UISourceCode.Events.WorkingCopyChanged, {sourceMapping: sourceMapping});
this._project.workspace().dispatchEventToListeners(
Workspace.Workspace.Events.WorkingCopyChanged, {uiSourceCode: this});
}
@@ -949,3 +950,24 @@ Workspace.UISourceCodeMetadata = class {
this.contentSize = contentSize;
}
};
+
+/**
+ * @interface
+ */
+Workspace.UISourceCode.SourceMapping = function() {};
+
+Workspace.UISourceCode.SourceMapping.prototype = {
+ /**
+ * @param {number} lineNumber
+ * @param {number=} columnNumber
+ * @return {!Array.<number>}
+ */
+ originalToFormatted: function(lineNumber, columnNumber) {},
+
+ /**
+ * @param {number} lineNumber
+ * @param {number=} columnNumber
+ * @return {!Array.<number>}
+ */
+ formattedToOriginal: function(lineNumber, columnNumber) {}
+};

Powered by Google App Engine
This is Rietveld 408576698