| Index: third_party/WebKit/Source/devtools/front_end/sources/SourceFormatter.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/sources/SourceFormatter.js b/third_party/WebKit/Source/devtools/front_end/sources/SourceFormatter.js
|
| index 4b60589d1d41edc8d496f5c1cf408df0f84a678b..4ce4d5e5c47727ed9d7f1414dee25273f9b841d0 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/sources/SourceFormatter.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/sources/SourceFormatter.js
|
| @@ -257,6 +257,22 @@ Sources.SourceFormatter.StyleMapping = class {
|
| }
|
|
|
| /**
|
| + * @override
|
| + * @param {!Workspace.UILocation} uiLocation
|
| + * @return {!Array<!SDK.CSSLocation>}
|
| + */
|
| + uiLocationToRawLocations(uiLocation) {
|
| + var formatData = Sources.SourceFormatData._for(uiLocation.uiSourceCode);
|
| + if (!formatData)
|
| + return [];
|
| + var originalLocation = formatData.mapping.formattedToOriginal(uiLocation.lineNumber, uiLocation.columnNumber);
|
| + var header = Bindings.NetworkProject.styleHeaderForUISourceCode(formatData.originalSourceCode);
|
| + if (!header)
|
| + return [];
|
| + return [new SDK.CSSLocation(header, originalLocation[0], originalLocation[1])];
|
| + }
|
| +
|
| + /**
|
| * @param {!Sources.SourceFormatData} formatData
|
| * @param {boolean} enable
|
| */
|
|
|