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

Side by Side Diff: Source/devtools/front_end/TimelineView.js

Issue 163523002: Clear button doesn't clear everything in memory section. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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
« no previous file with comments | « Source/devtools/front_end/TimelineMemoryOverview.js ('k') | 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Intel Inc. All rights reserved. 3 * Copyright (C) 2012 Intel Inc. All rights reserved.
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 are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * 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 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 this._automaticallySizeWindow = true; 471 this._automaticallySizeWindow = true;
472 this._mainThreadTasks = []; 472 this._mainThreadTasks = [];
473 this._gpuTasks = []; 473 this._gpuTasks = [];
474 }, 474 },
475 475
476 _onRecordsCleared: function() 476 _onRecordsCleared: function()
477 { 477 {
478 this._resetView(); 478 this._resetView();
479 this._windowFilter.reset(); 479 this._windowFilter.reset();
480 this._invalidateAndScheduleRefresh(true, true); 480 this._invalidateAndScheduleRefresh(true, true);
481 this._updateSelectionDetails();
481 }, 482 },
482 483
483 /** 484 /**
484 * @return {!Array.<!Element>} 485 * @return {!Array.<!Element>}
485 */ 486 */
486 elementsToRestoreScrollPositionsFor: function() 487 elementsToRestoreScrollPositionsFor: function()
487 { 488 {
488 return [this._containerElement]; 489 return [this._containerElement];
489 }, 490 },
490 491
(...skipping 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after
1782 * @param {boolean} vertical 1783 * @param {boolean} vertical
1783 */ 1784 */
1784 setVertical: function(vertical) 1785 setVertical: function(vertical)
1785 { 1786 {
1786 this._contentElement.enableStyleClass("hbox", !vertical); 1787 this._contentElement.enableStyleClass("hbox", !vertical);
1787 this._contentElement.enableStyleClass("vbox", vertical); 1788 this._contentElement.enableStyleClass("vbox", vertical);
1788 }, 1789 },
1789 1790
1790 __proto__: WebInspector.View.prototype 1791 __proto__: WebInspector.View.prototype
1791 } 1792 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/TimelineMemoryOverview.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698