OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
299 }, | 299 }, |
300 | 300 |
301 dispose: function() | 301 dispose: function() |
302 { | 302 { |
303 WebInspector.LiveLocation.prototype.dispose.call(this); | 303 WebInspector.LiveLocation.prototype.dispose.call(this); |
304 this._script._locations.remove(this); | 304 this._script._locations.remove(this); |
305 }, | 305 }, |
306 | 306 |
307 __proto__: WebInspector.LiveLocation.prototype | 307 __proto__: WebInspector.LiveLocation.prototype |
308 } | 308 } |
309 | |
310 /** | |
311 * @param {string} scriptId | |
312 * @param {number} lineNumber | |
313 * @param {number=} columnNumber | |
314 */ | |
315 WebInspector.Script.liveLocationText = function(scriptId, lineNumber, columnNumb er) | |
pfeldman
2014/03/26 14:13:13
This should be on a Linkifier.
| |
316 { | |
317 var script = WebInspector.debuggerModel.scriptForId(scriptId); | |
318 if (!script) | |
319 return ""; | |
320 var uiLocation = script.rawLocationToUILocation(lineNumber, columnNumber); | |
321 return uiLocation.linkText(); | |
322 } | |
OLD | NEW |