| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 * 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 * | 10 * |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 return; | 124 return; |
| 125 | 125 |
| 126 this._muteSourceCodeEvents = true; | 126 this._muteSourceCodeEvents = true; |
| 127 this._uiSourceCode.commitWorkingCopy(); | 127 this._uiSourceCode.commitWorkingCopy(); |
| 128 delete this._muteSourceCodeEvents; | 128 delete this._muteSourceCodeEvents; |
| 129 }, | 129 }, |
| 130 | 130 |
| 131 /** | 131 /** |
| 132 * @override | 132 * @override |
| 133 */ | 133 */ |
| 134 onTextEditorContentLoaded: function() | 134 onTextEditorContentSet: function() |
| 135 { | 135 { |
| 136 if (this._diff) | 136 if (this._diff) |
| 137 this._diff.updateDiffMarkersImmediately(); | 137 this._diff.updateDiffMarkersImmediately(); |
| 138 WebInspector.SourceFrame.prototype.onTextEditorContentLoaded.call(this); | 138 WebInspector.SourceFrame.prototype.onTextEditorContentSet.call(this); |
| 139 for (var message of this._uiSourceCode.messages()) | 139 for (var message of this._uiSourceCode.messages()) |
| 140 this._addMessageToSource(message); | 140 this._addMessageToSource(message); |
| 141 this._decorateAllTypes(); | 141 this._decorateAllTypes(); |
| 142 }, | 142 }, |
| 143 | 143 |
| 144 /** | 144 /** |
| 145 * @override | 145 * @override |
| 146 * @param {!WebInspector.TextRange} oldRange | 146 * @param {!WebInspector.TextRange} oldRange |
| 147 * @param {!WebInspector.TextRange} newRange | 147 * @param {!WebInspector.TextRange} newRange |
| 148 */ | 148 */ |
| (...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 627 | 627 |
| 628 /** | 628 /** |
| 629 * @param {!WebInspector.UISourceCode.Message} a | 629 * @param {!WebInspector.UISourceCode.Message} a |
| 630 * @param {!WebInspector.UISourceCode.Message} b | 630 * @param {!WebInspector.UISourceCode.Message} b |
| 631 * @return {number} | 631 * @return {number} |
| 632 */ | 632 */ |
| 633 WebInspector.UISourceCode.Message.messageLevelComparator = function(a, b) | 633 WebInspector.UISourceCode.Message.messageLevelComparator = function(a, b) |
| 634 { | 634 { |
| 635 return WebInspector.UISourceCode.Message._messageLevelPriority[a.level()] -
WebInspector.UISourceCode.Message._messageLevelPriority[b.level()]; | 635 return WebInspector.UISourceCode.Message._messageLevelPriority[a.level()] -
WebInspector.UISourceCode.Message._messageLevelPriority[b.level()]; |
| 636 } | 636 } |
| OLD | NEW |