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

Side by Side Diff: Source/devtools/front_end/sources/SourcesPanel.js

Issue 1214973002: DevTools: start in the beginning of the line upon "continue to here". (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698