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 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
462 if (this._viewport.scrolledToBottom()) | 462 if (this._viewport.scrolledToBottom()) |
463 this._immediatelyScrollToBottom(); | 463 this._immediatelyScrollToBottom(); |
464 else | 464 else |
465 WebInspector.View.prototype.restoreScrollPositions.call(this); | 465 WebInspector.View.prototype.restoreScrollPositions.call(this); |
466 }, | 466 }, |
467 | 467 |
468 onResize: function() | 468 onResize: function() |
469 { | 469 { |
470 this._scheduleViewportRefresh(); | 470 this._scheduleViewportRefresh(); |
471 this._prompt.hideSuggestBox(); | 471 this._prompt.hideSuggestBox(); |
472 this._prompt.clearAutoComplete(true); | |
pfeldman
2014/12/03 12:34:38
lgtm
Do we think these two come together? If so,
| |
472 if (this._viewport.scrolledToBottom()) | 473 if (this._viewport.scrolledToBottom()) |
473 this._immediatelyScrollToBottom(); | 474 this._immediatelyScrollToBottom(); |
474 }, | 475 }, |
475 | 476 |
476 _scheduleViewportRefresh: function() | 477 _scheduleViewportRefresh: function() |
477 { | 478 { |
478 /** | 479 /** |
479 * @param {!WebInspector.Throttler.FinishCallback} finishCallback | 480 * @param {!WebInspector.Throttler.FinishCallback} finishCallback |
480 * @this {WebInspector.ConsoleView} | 481 * @this {WebInspector.ConsoleView} |
481 */ | 482 */ |
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1310 /** | 1311 /** |
1311 * @override | 1312 * @override |
1312 * @return {boolean} | 1313 * @return {boolean} |
1313 */ | 1314 */ |
1314 handleAction: function() | 1315 handleAction: function() |
1315 { | 1316 { |
1316 WebInspector.console.show(); | 1317 WebInspector.console.show(); |
1317 return true; | 1318 return true; |
1318 } | 1319 } |
1319 } | 1320 } |
OLD | NEW |