OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 * @return {boolean} | 682 * @return {boolean} |
683 */ | 683 */ |
684 isPausing() { | 684 isPausing() { |
685 return this._isPausing; | 685 return this._isPausing; |
686 } | 686 } |
687 | 687 |
688 /** | 688 /** |
689 * @param {?SDK.DebuggerModel.CallFrame} callFrame | 689 * @param {?SDK.DebuggerModel.CallFrame} callFrame |
690 */ | 690 */ |
691 setSelectedCallFrame(callFrame) { | 691 setSelectedCallFrame(callFrame) { |
| 692 if (this._selectedCallFrame === callFrame) |
| 693 return; |
692 this._selectedCallFrame = callFrame; | 694 this._selectedCallFrame = callFrame; |
693 if (!this._selectedCallFrame) | 695 this.dispatchEventToListeners(SDK.DebuggerModel.Events.CallFrameSelected, th
is); |
694 return; | |
695 | |
696 this.dispatchEventToListeners(SDK.DebuggerModel.Events.CallFrameSelected, ca
llFrame); | |
697 } | 696 } |
698 | 697 |
699 /** | 698 /** |
700 * @return {?SDK.DebuggerModel.CallFrame} | 699 * @return {?SDK.DebuggerModel.CallFrame} |
701 */ | 700 */ |
702 selectedCallFrame() { | 701 selectedCallFrame() { |
703 return this._selectedCallFrame; | 702 return this._selectedCallFrame; |
704 } | 703 } |
705 | 704 |
706 /** | 705 /** |
(...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1463 stack.callFrames.shift(); | 1462 stack.callFrames.shift(); |
1464 if (previous && (!stack.callFrames.length && !stack.promiseCreationFrame)) | 1463 if (previous && (!stack.callFrames.length && !stack.promiseCreationFrame)) |
1465 previous.parent = stack.parent; | 1464 previous.parent = stack.parent; |
1466 else | 1465 else |
1467 previous = stack; | 1466 previous = stack; |
1468 stack = stack.parent; | 1467 stack = stack.parent; |
1469 } | 1468 } |
1470 return asyncStackTrace; | 1469 return asyncStackTrace; |
1471 } | 1470 } |
1472 }; | 1471 }; |
OLD | NEW |