Index: third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js b/third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js |
index 1c9adacc6de6410df41370b2616c992b2b4e0712..ae6d40f2561c39971ef84853a9567f90a2d8bc70 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js |
+++ b/third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js |
@@ -83,17 +83,20 @@ Bindings.ResourceScriptMapping = class { |
* @param {!Workspace.UISourceCode} uiSourceCode |
* @param {number} lineNumber |
* @param {number} columnNumber |
- * @return {?SDK.DebuggerModel.Location} |
+ * @return {!Array<!SDK.DebuggerModel.Location>} |
*/ |
- uiLocationToRawLocation(uiSourceCode, lineNumber, columnNumber) { |
+ uiLocationToRawLocations(uiSourceCode, lineNumber, columnNumber) { |
var scripts = this._scriptsForUISourceCode(uiSourceCode); |
console.assert(scripts.length); |
var script = scripts[scripts.length - 1]; |
+ var location; |
if (script.isInlineScriptWithSourceURL()) { |
- return this._debuggerModel.createRawLocation( |
+ location = this._debuggerModel.createRawLocation( |
script, lineNumber + script.lineOffset, lineNumber ? columnNumber : columnNumber + script.columnOffset); |
+ } else { |
+ location = this._debuggerModel.createRawLocation(script, lineNumber, columnNumber); |
} |
- return this._debuggerModel.createRawLocation(script, lineNumber, columnNumber); |
+ return location ? [location] : []; |
} |
/** |