OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 var oldUISourceCodeList = /** @type {Array.<WebInspector.UISourceCode>}
*/ event.data.oldUISourceCodeList; | 591 var oldUISourceCodeList = /** @type {Array.<WebInspector.UISourceCode>}
*/ event.data.oldUISourceCodeList; |
592 var uiSourceCodeList = /** @type {Array.<WebInspector.UISourceCode>} */
event.data.uiSourceCodeList; | 592 var uiSourceCodeList = /** @type {Array.<WebInspector.UISourceCode>} */
event.data.uiSourceCodeList; |
593 | 593 |
594 this._fileSelector.replaceUISourceCodes(oldUISourceCodeList, uiSourceCod
eList); | 594 this._fileSelector.replaceUISourceCodes(oldUISourceCodeList, uiSourceCod
eList); |
595 this._editorContainer.replaceFiles(oldUISourceCodeList, uiSourceCodeList
); | 595 this._editorContainer.replaceFiles(oldUISourceCodeList, uiSourceCodeList
); |
596 for (var i = 0; i < oldUISourceCodeList.length; ++i) | 596 for (var i = 0; i < oldUISourceCodeList.length; ++i) |
597 this._removeSourceFrame(oldUISourceCodeList[i]); | 597 this._removeSourceFrame(oldUISourceCodeList[i]); |
598 | 598 |
599 for (var i = 0; i < oldUISourceCodeList.length; ++i) | 599 for (var i = 0; i < oldUISourceCodeList.length; ++i) |
600 this._removeBreakpointListeners(oldUISourceCodeList[i]); | 600 this._removeBreakpointListeners(oldUISourceCodeList[i]); |
601 for (var i = 0; i < uiSourceCodeList.length; ++i) | 601 for (var i = 0; i < uiSourceCodeList.length; ++i) { |
602 this._addBreakpointListeners(uiSourceCodeList[i]); | 602 var uiSourceCode = uiSourceCodeList[i]; |
| 603 var breakpoints = uiSourceCode.breakpoints(); |
| 604 for (var lineNumber in breakpoints) |
| 605 this._uiBreakpointAdded({ data: breakpoints[lineNumber] }); |
| 606 this._addBreakpointListeners(uiSourceCode); |
| 607 } |
603 }, | 608 }, |
604 | 609 |
605 _sourceFrameLoaded: function(event) | 610 _sourceFrameLoaded: function(event) |
606 { | 611 { |
607 var sourceFrame = /** @type {WebInspector.JavaScriptSourceFrame} */ even
t.target; | 612 var sourceFrame = /** @type {WebInspector.JavaScriptSourceFrame} */ even
t.target; |
608 var uiSourceCode = sourceFrame._uiSourceCode; | 613 var uiSourceCode = sourceFrame._uiSourceCode; |
609 | 614 |
610 var messages = this._presentationModel.messagesForUISourceCode(uiSourceC
ode); | 615 var messages = this._presentationModel.messagesForUISourceCode(uiSourceC
ode); |
611 for (var i = 0; i < messages.length; ++i) { | 616 for (var i = 0; i < messages.length; ++i) { |
612 var message = messages[i]; | 617 var message = messages[i]; |
(...skipping 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1751 if (this._currentSourceFrame) | 1756 if (this._currentSourceFrame) |
1752 this._currentSourceFrame.detach(); | 1757 this._currentSourceFrame.detach(); |
1753 this._currentSourceFrame = null; | 1758 this._currentSourceFrame = null; |
1754 this._currentFile = null; | 1759 this._currentFile = null; |
1755 delete this._initialViewSelectionProcessed; | 1760 delete this._initialViewSelectionProcessed; |
1756 delete this._userSelectedFiles; | 1761 delete this._userSelectedFiles; |
1757 } | 1762 } |
1758 } | 1763 } |
1759 | 1764 |
1760 WebInspector.ScriptsPanel.SingleFileEditorContainer.prototype.__proto__ = WebIns
pector.Object.prototype; | 1765 WebInspector.ScriptsPanel.SingleFileEditorContainer.prototype.__proto__ = WebIns
pector.Object.prototype; |
OLD | NEW |