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 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
669 }, | 669 }, |
670 | 670 |
671 /** | 671 /** |
672 * @param {!WebInspector.UILocation} uiLocation | 672 * @param {!WebInspector.UILocation} uiLocation |
673 */ | 673 */ |
674 _continueToLocation: function(uiLocation) | 674 _continueToLocation: function(uiLocation) |
675 { | 675 { |
676 var executionContext = WebInspector.context.flavor(WebInspector.Executio
nContext); | 676 var executionContext = WebInspector.context.flavor(WebInspector.Executio
nContext); |
677 if (!executionContext) | 677 if (!executionContext) |
678 return; | 678 return; |
679 var rawLocation = WebInspector.debuggerWorkspaceBinding.uiLocationToRawL
ocation(executionContext.target(), uiLocation.uiSourceCode, uiLocation.lineNumbe
r, uiLocation.columnNumber); | 679 |
| 680 // Always use 0 column. |
| 681 var rawLocation = WebInspector.debuggerWorkspaceBinding.uiLocationToRawL
ocation(executionContext.target(), uiLocation.uiSourceCode, uiLocation.lineNumbe
r, 0); |
680 if (!rawLocation) | 682 if (!rawLocation) |
681 return; | 683 return; |
682 | 684 |
683 if (!this._prepareToResume()) | 685 if (!this._prepareToResume()) |
684 return; | 686 return; |
685 | 687 |
686 rawLocation.continueToLocation(); | 688 rawLocation.continueToLocation(); |
687 }, | 689 }, |
688 | 690 |
689 _toggleBreakpointsClicked: function(event) | 691 _toggleBreakpointsClicked: function(event) |
(...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1458 WebInspector.SourcesPanelFactory.prototype = { | 1460 WebInspector.SourcesPanelFactory.prototype = { |
1459 /** | 1461 /** |
1460 * @override | 1462 * @override |
1461 * @return {!WebInspector.Panel} | 1463 * @return {!WebInspector.Panel} |
1462 */ | 1464 */ |
1463 createPanel: function() | 1465 createPanel: function() |
1464 { | 1466 { |
1465 return WebInspector.SourcesPanel.instance(); | 1467 return WebInspector.SourcesPanel.instance(); |
1466 } | 1468 } |
1467 } | 1469 } |
OLD | NEW |