| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 this._liveLocations[i].dispose(); | 106 this._liveLocations[i].dispose(); |
| 107 this._liveLocations = []; | 107 this._liveLocations = []; |
| 108 }, | 108 }, |
| 109 | 109 |
| 110 /** | 110 /** |
| 111 * @param {Element} anchor | 111 * @param {Element} anchor |
| 112 * @param {WebInspector.UILocation} uiLocation | 112 * @param {WebInspector.UILocation} uiLocation |
| 113 */ | 113 */ |
| 114 _updateAnchor: function(anchor, uiLocation) | 114 _updateAnchor: function(anchor, uiLocation) |
| 115 { | 115 { |
| 116 anchor.preferredPanel = "scripts"; | 116 anchor.preferredPanel = "sources"; |
| 117 anchor.href = sanitizeHref(uiLocation.uiSourceCode.originURL()); | 117 anchor.href = sanitizeHref(uiLocation.uiSourceCode.originURL()); |
| 118 anchor.uiSourceCode = uiLocation.uiSourceCode; | 118 anchor.uiSourceCode = uiLocation.uiSourceCode; |
| 119 anchor.lineNumber = uiLocation.lineNumber; | 119 anchor.lineNumber = uiLocation.lineNumber; |
| 120 anchor.columnNumber = uiLocation.columnNumber; | 120 anchor.columnNumber = uiLocation.columnNumber; |
| 121 this._formatter.formatLiveAnchor(anchor, uiLocation); | 121 this._formatter.formatLiveAnchor(anchor, uiLocation); |
| 122 } | 122 } |
| 123 } | 123 } |
| 124 | 124 |
| 125 /** | 125 /** |
| 126 * @constructor | 126 * @constructor |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 }, | 178 }, |
| 179 __proto__: WebInspector.Linkifier.DefaultFormatter.prototype | 179 __proto__: WebInspector.Linkifier.DefaultFormatter.prototype |
| 180 } | 180 } |
| 181 | 181 |
| 182 /** | 182 /** |
| 183 * The maximum number of characters to display in a URL. | 183 * The maximum number of characters to display in a URL. |
| 184 * @const | 184 * @const |
| 185 * @type {number} | 185 * @type {number} |
| 186 */ | 186 */ |
| 187 WebInspector.Linkifier.MaxLengthForDisplayedURLs = 150; | 187 WebInspector.Linkifier.MaxLengthForDisplayedURLs = 150; |
| OLD | NEW |