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

Side by Side Diff: Source/devtools/front_end/console/ConsoleView.js

Issue 322723002: DevTools: [Console] schedule viewport refresh on console resize. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | no next file » | 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) 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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 restoreScrollPositions: function() 378 restoreScrollPositions: function()
379 { 379 {
380 if (this._scrolledToBottom) 380 if (this._scrolledToBottom)
381 this._immediatelyScrollIntoView(); 381 this._immediatelyScrollIntoView();
382 else 382 else
383 WebInspector.View.prototype.restoreScrollPositions.call(this); 383 WebInspector.View.prototype.restoreScrollPositions.call(this);
384 }, 384 },
385 385
386 onResize: function() 386 onResize: function()
387 { 387 {
388 this._scheduleViewportRefresh();
388 this._prompt.hideSuggestBox(); 389 this._prompt.hideSuggestBox();
389 this.restoreScrollPositions(); 390 this.restoreScrollPositions();
390 }, 391 },
391 392
392 _isScrollIntoViewScheduled: function() 393 _isScrollIntoViewScheduled: function()
393 { 394 {
394 return !!this._scrollIntoViewTimer; 395 return !!this._scrollIntoViewTimer;
395 }, 396 },
396 397
397 _scheduleViewportRefresh: function() 398 _scheduleViewportRefresh: function()
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after
1185 WebInspector.ConsoleView.ShowConsoleActionDelegate.prototype = { 1186 WebInspector.ConsoleView.ShowConsoleActionDelegate.prototype = {
1186 /** 1187 /**
1187 * @return {boolean} 1188 * @return {boolean}
1188 */ 1189 */
1189 handleAction: function() 1190 handleAction: function()
1190 { 1191 {
1191 WebInspector.console.show(); 1192 WebInspector.console.show();
1192 return true; 1193 return true;
1193 } 1194 }
1194 } 1195 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698