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