| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 * @param {string=} classes | 186 * @param {string=} classes |
| 187 * @return {!Element} | 187 * @return {!Element} |
| 188 */ | 188 */ |
| 189 linkifyRawLocation: function(rawLocation, fallbackUrl, classes) | 189 linkifyRawLocation: function(rawLocation, fallbackUrl, classes) |
| 190 { | 190 { |
| 191 return this.linkifyScriptLocation(rawLocation.target(), rawLocation.scri
ptId, fallbackUrl, rawLocation.lineNumber, rawLocation.columnNumber, classes); | 191 return this.linkifyScriptLocation(rawLocation.target(), rawLocation.scri
ptId, fallbackUrl, rawLocation.lineNumber, rawLocation.columnNumber, classes); |
| 192 }, | 192 }, |
| 193 | 193 |
| 194 /** | 194 /** |
| 195 * @param {?WebInspector.Target} target | 195 * @param {?WebInspector.Target} target |
| 196 * @param {!ConsoleAgent.CallFrame} callFrame | 196 * @param {!RuntimeAgent.CallFrame} callFrame |
| 197 * @param {string=} classes | 197 * @param {string=} classes |
| 198 * @return {!Element} | 198 * @return {!Element} |
| 199 */ | 199 */ |
| 200 linkifyConsoleCallFrame: function(target, callFrame, classes) | 200 linkifyConsoleCallFrame: function(target, callFrame, classes) |
| 201 { | 201 { |
| 202 // FIXME(62725): console stack trace line/column numbers are one-based. | 202 // FIXME(62725): console stack trace line/column numbers are one-based. |
| 203 var lineNumber = callFrame.lineNumber ? callFrame.lineNumber - 1 : 0; | 203 var lineNumber = callFrame.lineNumber ? callFrame.lineNumber - 1 : 0; |
| 204 var columnNumber = callFrame.columnNumber ? callFrame.columnNumber - 1 :
0; | 204 var columnNumber = callFrame.columnNumber ? callFrame.columnNumber - 1 :
0; |
| 205 var anchor = this.linkifyScriptLocation(target, callFrame.scriptId, call
Frame.url, lineNumber, columnNumber, classes); | 205 var anchor = this.linkifyScriptLocation(target, callFrame.scriptId, call
Frame.url, lineNumber, columnNumber, classes); |
| 206 var debuggerModel = WebInspector.DebuggerModel.fromTarget(target); | 206 var debuggerModel = WebInspector.DebuggerModel.fromTarget(target); |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 /** | 541 /** |
| 542 * @param {!WebInspector.NetworkRequest} request | 542 * @param {!WebInspector.NetworkRequest} request |
| 543 * @return {!Element} | 543 * @return {!Element} |
| 544 */ | 544 */ |
| 545 WebInspector.linkifyRequestAsNode = function(request) | 545 WebInspector.linkifyRequestAsNode = function(request) |
| 546 { | 546 { |
| 547 var anchor = WebInspector.linkifyURLAsNode(request.url); | 547 var anchor = WebInspector.linkifyURLAsNode(request.url); |
| 548 anchor.requestId = request.requestId; | 548 anchor.requestId = request.requestId; |
| 549 return anchor; | 549 return anchor; |
| 550 } | 550 } |
| OLD | NEW |