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

Side by Side Diff: Source/devtools/front_end/JavaScriptSourceFrame.js

Issue 131743005: DevTools: fix execution line update on pretty-print (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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 | Source/devtools/front_end/UISourceCodeFrame.js » ('j') | 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 this._scriptFile = this._uiSourceCode.scriptFile(); 618 this._scriptFile = this._uiSourceCode.scriptFile();
619 if (this._scriptFile) { 619 if (this._scriptFile) {
620 this._scriptFile.addEventListener(WebInspector.ScriptFile.Events.Did MergeToVM, this._didMergeToVM, this); 620 this._scriptFile.addEventListener(WebInspector.ScriptFile.Events.Did MergeToVM, this._didMergeToVM, this);
621 this._scriptFile.addEventListener(WebInspector.ScriptFile.Events.Did DivergeFromVM, this._didDivergeFromVM, this); 621 this._scriptFile.addEventListener(WebInspector.ScriptFile.Events.Did DivergeFromVM, this._didDivergeFromVM, this);
622 622
623 if (this.loaded) 623 if (this.loaded)
624 this._scriptFile.checkMapping(); 624 this._scriptFile.checkMapping();
625 } 625 }
626 }, 626 },
627 627
628 beforeFormattedChange: function()
629 {
630 this.clearExecutionLine();
631 },
632
628 onTextEditorContentLoaded: function() 633 onTextEditorContentLoaded: function()
629 { 634 {
630 if (typeof this._executionLineNumber === "number") 635 if (typeof this._executionLineNumber === "number")
631 this.setExecutionLine(this._executionLineNumber, this._executionCall Frame); 636 this.setExecutionLine(this._executionLineNumber, this._executionCall Frame);
632 637
633 var breakpointLocations = this._breakpointManager.breakpointLocationsFor UISourceCode(this._uiSourceCode); 638 var breakpointLocations = this._breakpointManager.breakpointLocationsFor UISourceCode(this._uiSourceCode);
634 for (var i = 0; i < breakpointLocations.length; ++i) 639 for (var i = 0; i < breakpointLocations.length; ++i)
635 this._breakpointAdded({data:breakpointLocations[i]}); 640 this._breakpointAdded({data:breakpointLocations[i]});
636 641
637 var messages = this._uiSourceCode.consoleMessages(); 642 var messages = this._uiSourceCode.consoleMessages();
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 * @param {!DebuggerAgent.Location} locationB 933 * @param {!DebuggerAgent.Location} locationB
929 * @return {number} 934 * @return {number}
930 */ 935 */
931 WebInspector.JavaScriptSourceFrame.StepIntoMarkup._Comparator = function(locatio nA, locationB) 936 WebInspector.JavaScriptSourceFrame.StepIntoMarkup._Comparator = function(locatio nA, locationB)
932 { 937 {
933 if (locationA.lineNumber === locationB.lineNumber) 938 if (locationA.lineNumber === locationB.lineNumber)
934 return locationA.columnNumber - locationB.columnNumber; 939 return locationA.columnNumber - locationB.columnNumber;
935 else 940 else
936 return locationA.lineNumber - locationB.lineNumber; 941 return locationA.lineNumber - locationB.lineNumber;
937 }; 942 };
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/UISourceCodeFrame.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698