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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 { | 409 { |
410 var node = event.data; | 410 var node = event.data; |
411 if (!node || !node.scriptId) | 411 if (!node || !node.scriptId) |
412 return; | 412 return; |
413 var script = WebInspector.debuggerModel.scriptForId(node.scriptId) | 413 var script = WebInspector.debuggerModel.scriptForId(node.scriptId) |
414 if (!script) | 414 if (!script) |
415 return; | 415 return; |
416 var uiLocation = script.rawLocationToUILocation(node.lineNumber); | 416 var uiLocation = script.rawLocationToUILocation(node.lineNumber); |
417 if (!uiLocation) | 417 if (!uiLocation) |
418 return; | 418 return; |
419 WebInspector.showPanel("scripts").showUISourceCode(uiLocation.uiSourceCo
de, uiLocation.lineNumber, uiLocation.columnNumber); | 419 WebInspector.showPanel("scripts").showUILocation(uiLocation); |
420 }, | 420 }, |
421 | 421 |
422 _changeView: function() | 422 _changeView: function() |
423 { | 423 { |
424 if (!this.profile) | 424 if (!this.profile) |
425 return; | 425 return; |
426 | 426 |
427 switch (this.viewSelectComboBox.selectedOption().value) { | 427 switch (this.viewSelectComboBox.selectedOption().value) { |
428 case WebInspector.CPUProfileView._TypeFlame: | 428 case WebInspector.CPUProfileView._TypeFlame: |
429 this._ensureFlameChartCreated(); | 429 this._ensureFlameChartCreated(); |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
925 this.title = file.name; | 925 this.title = file.name; |
926 this.sidebarElement.subtitle = WebInspector.UIString("Loading\u2026"); | 926 this.sidebarElement.subtitle = WebInspector.UIString("Loading\u2026"); |
927 this.sidebarElement.wait = true; | 927 this.sidebarElement.wait = true; |
928 | 928 |
929 var fileReader = new WebInspector.ChunkedFileReader(file, 10000000, this
); | 929 var fileReader = new WebInspector.ChunkedFileReader(file, 10000000, this
); |
930 fileReader.start(this); | 930 fileReader.start(this); |
931 }, | 931 }, |
932 | 932 |
933 __proto__: WebInspector.ProfileHeader.prototype | 933 __proto__: WebInspector.ProfileHeader.prototype |
934 } | 934 } |
OLD | NEW |