OLD | NEW |
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 Loading... |
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 Loading... |
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 }; |
OLD | NEW |