| 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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 selectedCallFrame.element.scrollIntoViewIfNeeded(); | 406 selectedCallFrame.element.scrollIntoViewIfNeeded(); |
| 407 var callFrame = selectedCallFrame._debuggerCallFrame; | 407 var callFrame = selectedCallFrame._debuggerCallFrame; |
| 408 | 408 |
| 409 for (var i = 0; i < this.callFrames.length; ++i) { | 409 for (var i = 0; i < this.callFrames.length; ++i) { |
| 410 var callFrameItem = this.callFrames[i]; | 410 var callFrameItem = this.callFrames[i]; |
| 411 callFrameItem.setSelected(callFrameItem === selectedCallFrame); | 411 callFrameItem.setSelected(callFrameItem === selectedCallFrame); |
| 412 if (callFrameItem.isSelected() && callFrameItem.isHidden()) | 412 if (callFrameItem.isSelected() && callFrameItem.isHidden()) |
| 413 this._revealHiddenCallFrames(); | 413 this._revealHiddenCallFrames(); |
| 414 } | 414 } |
| 415 | 415 |
| 416 var oldCallFrame = WebInspector.context.flavor(WebInspector.DebuggerMode
l.CallFrame); |
| 417 if (oldCallFrame === callFrame) { |
| 418 var uiLocation = WebInspector.debuggerWorkspaceBinding.rawLocationTo
UILocation(callFrame.location()); |
| 419 WebInspector.Revealer.reveal(uiLocation); |
| 420 return; |
| 421 } |
| 422 |
| 416 WebInspector.context.setFlavor(WebInspector.DebuggerModel.CallFrame, cal
lFrame); | 423 WebInspector.context.setFlavor(WebInspector.DebuggerModel.CallFrame, cal
lFrame); |
| 417 callFrame.debuggerModel.setSelectedCallFrame(callFrame); | 424 callFrame.debuggerModel.setSelectedCallFrame(callFrame); |
| 418 }, | 425 }, |
| 419 | 426 |
| 420 _copyStackTrace: function() | 427 _copyStackTrace: function() |
| 421 { | 428 { |
| 422 var text = ""; | 429 var text = ""; |
| 423 var lastCallFrame = null; | 430 var lastCallFrame = null; |
| 424 for (var i = 0; i < this.callFrames.length; ++i) { | 431 for (var i = 0; i < this.callFrames.length; ++i) { |
| 425 var callFrame = this.callFrames[i]; | 432 var callFrame = this.callFrames[i]; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 var uiLocation = liveLocation.uiLocation(); | 496 var uiLocation = liveLocation.uiLocation(); |
| 490 if (!uiLocation) | 497 if (!uiLocation) |
| 491 return; | 498 return; |
| 492 var text = uiLocation.linkText(); | 499 var text = uiLocation.linkText(); |
| 493 this.setSubtitle(text.trimMiddle(30)); | 500 this.setSubtitle(text.trimMiddle(30)); |
| 494 this.subtitleElement.title = text; | 501 this.subtitleElement.title = text; |
| 495 }, | 502 }, |
| 496 | 503 |
| 497 __proto__: WebInspector.UIList.Item.prototype | 504 __proto__: WebInspector.UIList.Item.prototype |
| 498 } | 505 } |
| OLD | NEW |