Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: Source/WebCore/inspector/front-end/ScriptsPanel.js

Issue 10005037: Merge 112841 - Web Inspector: breakpoints are not shown in sidebar pane after switching pretty-prin… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1084/
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « LayoutTests/inspector/debugger/script-formatter-breakpoints-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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;
OLDNEW
« no previous file with comments | « LayoutTests/inspector/debugger/script-formatter-breakpoints-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698