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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 updateLocations: function() | 219 updateLocations: function() |
220 { | 220 { |
221 var items = this._locations.items(); | 221 var items = this._locations.items(); |
222 for (var i = 0; i < items.length; ++i) | 222 for (var i = 0; i < items.length; ++i) |
223 items[i].update(); | 223 items[i].update(); |
224 }, | 224 }, |
225 | 225 |
226 /** | 226 /** |
227 * @param {WebInspector.DebuggerModel.Location} rawLocation | 227 * @param {WebInspector.DebuggerModel.Location} rawLocation |
228 * @param {function(!WebInspector.UILocation):(boolean|undefined)} updateDel
egate | 228 * @param {function(!WebInspector.UILocation):(boolean|undefined)} updateDel
egate |
229 * @return {WebInspector.Script.Location} | 229 * @return {!WebInspector.Script.Location} |
230 */ | 230 */ |
231 createLiveLocation: function(rawLocation, updateDelegate) | 231 createLiveLocation: function(rawLocation, updateDelegate) |
232 { | 232 { |
233 console.assert(rawLocation.scriptId === this.scriptId); | 233 console.assert(rawLocation.scriptId === this.scriptId); |
234 var location = new WebInspector.Script.Location(this, rawLocation, updat
eDelegate); | 234 var location = new WebInspector.Script.Location(this, rawLocation, updat
eDelegate); |
235 this._locations.add(location); | 235 this._locations.add(location); |
236 location.update(); | 236 location.update(); |
237 return location; | 237 return location; |
238 }, | 238 }, |
239 | 239 |
(...skipping 24 matching lines...) Expand all Loading... |
264 }, | 264 }, |
265 | 265 |
266 dispose: function() | 266 dispose: function() |
267 { | 267 { |
268 WebInspector.LiveLocation.prototype.dispose.call(this); | 268 WebInspector.LiveLocation.prototype.dispose.call(this); |
269 this._script._locations.remove(this); | 269 this._script._locations.remove(this); |
270 }, | 270 }, |
271 | 271 |
272 __proto__: WebInspector.LiveLocation.prototype | 272 __proto__: WebInspector.LiveLocation.prototype |
273 } | 273 } |
OLD | NEW |