| 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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 * @param {!WebInspector.UILocation} uiLocation | 325 * @param {!WebInspector.UILocation} uiLocation |
| 326 */ | 326 */ |
| 327 formatLiveAnchor: function(anchor, uiLocation) | 327 formatLiveAnchor: function(anchor, uiLocation) |
| 328 { | 328 { |
| 329 var text = uiLocation.linkText(); | 329 var text = uiLocation.linkText(); |
| 330 text = text.replace(/([a-f0-9]{7})[a-f0-9]{13}[a-f0-9]*/g, "$1\u2026"); | 330 text = text.replace(/([a-f0-9]{7})[a-f0-9]{13}[a-f0-9]*/g, "$1\u2026"); |
| 331 if (this._maxLength) | 331 if (this._maxLength) |
| 332 text = text.trimMiddle(this._maxLength); | 332 text = text.trimMiddle(this._maxLength); |
| 333 anchor.textContent = text; | 333 anchor.textContent = text; |
| 334 | 334 |
| 335 var titleText = uiLocation.uiSourceCode.originURL(); | 335 var titleText = uiLocation.uiSourceCode.url(); |
| 336 if (typeof uiLocation.lineNumber === "number") | 336 if (typeof uiLocation.lineNumber === "number") |
| 337 titleText += ":" + (uiLocation.lineNumber + 1); | 337 titleText += ":" + (uiLocation.lineNumber + 1); |
| 338 anchor.title = titleText; | 338 anchor.title = titleText; |
| 339 } | 339 } |
| 340 } | 340 } |
| 341 | 341 |
| 342 /** | 342 /** |
| 343 * @constructor | 343 * @constructor |
| 344 * @extends {WebInspector.Linkifier.DefaultFormatter} | 344 * @extends {WebInspector.Linkifier.DefaultFormatter} |
| 345 */ | 345 */ |
| (...skipping 195 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 |