| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2009 Joseph Pecoraro | 3 * Copyright (C) 2009 Joseph Pecoraro |
| 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 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 }, | 275 }, |
| 276 | 276 |
| 277 wasShown: function() | 277 wasShown: function() |
| 278 { | 278 { |
| 279 if (!this.prompt.isCaretInsidePrompt()) | 279 if (!this.prompt.isCaretInsidePrompt()) |
| 280 this.prompt.moveCaretToEndOfPrompt(); | 280 this.prompt.moveCaretToEndOfPrompt(); |
| 281 }, | 281 }, |
| 282 | 282 |
| 283 focus: function() | 283 focus: function() |
| 284 { | 284 { |
| 285 if (this.promptElement === WebInspector.currentFocusElement()) |
| 286 return; |
| 285 WebInspector.setCurrentFocusElement(this.promptElement); | 287 WebInspector.setCurrentFocusElement(this.promptElement); |
| 286 this.prompt.moveCaretToEndOfPrompt(); | 288 this.prompt.moveCaretToEndOfPrompt(); |
| 287 }, | 289 }, |
| 288 | 290 |
| 289 storeScrollPositions: function() | 291 storeScrollPositions: function() |
| 290 { | 292 { |
| 291 WebInspector.View.prototype.storeScrollPositions.call(this); | 293 WebInspector.View.prototype.storeScrollPositions.call(this); |
| 292 this._scrolledToBottom = this.messagesElement.isScrolledToBottom(); | 294 this._scrolledToBottom = this.messagesElement.isScrolledToBottom(); |
| 293 }, | 295 }, |
| 294 | 296 |
| (...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1099 | 1101 |
| 1100 /** | 1102 /** |
| 1101 * @type {!WebInspector.ConsoleView} | 1103 * @type {!WebInspector.ConsoleView} |
| 1102 */ | 1104 */ |
| 1103 WebInspector.consoleView; | 1105 WebInspector.consoleView; |
| 1104 | 1106 |
| 1105 WebInspector.ConsoleMessage.create = function(source, level, message, type, url,
line, column, repeatCount, parameters, stackTrace, requestId, isOutdated) | 1107 WebInspector.ConsoleMessage.create = function(source, level, message, type, url,
line, column, repeatCount, parameters, stackTrace, requestId, isOutdated) |
| 1106 { | 1108 { |
| 1107 return new WebInspector.ConsoleMessageImpl(source, level, message, WebInspec
tor.consoleView._linkifier, type, url, line, column, repeatCount, parameters, st
ackTrace, requestId, isOutdated); | 1109 return new WebInspector.ConsoleMessageImpl(source, level, message, WebInspec
tor.consoleView._linkifier, type, url, line, column, repeatCount, parameters, st
ackTrace, requestId, isOutdated); |
| 1108 } | 1110 } |
| OLD | NEW |