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

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

Issue 166273012: TimelinePanel: do not collapse record when user changes panel. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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 | Annotate | Revision Log
« no previous file with comments | « Source/devtools/front_end/TimelinePanel.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 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 }, 483 },
484 484
485 /** 485 /**
486 * @return {!Array.<!Element>} 486 * @return {!Array.<!Element>}
487 */ 487 */
488 elementsToRestoreScrollPositionsFor: function() 488 elementsToRestoreScrollPositionsFor: function()
489 { 489 {
490 return [this._containerElement]; 490 return [this._containerElement];
491 }, 491 },
492 492
493 refreshRecords: function()
494 {
495 this._repopulateRecords();
496 this._updateSelectionDetails();
497 },
498
493 wasShown: function() 499 wasShown: function()
494 { 500 {
495 WebInspector.View.prototype.wasShown.call(this); 501 WebInspector.View.prototype.wasShown.call(this);
496 502
497 this._repopulateRecords();
498 this._updateSelectionDetails();
499
500 if (!WebInspector.TimelinePanel._categoryStylesInitialized) { 503 if (!WebInspector.TimelinePanel._categoryStylesInitialized) {
501 WebInspector.TimelinePanel._categoryStylesInitialized = true; 504 WebInspector.TimelinePanel._categoryStylesInitialized = true;
502 this._injectCategoryStyles(); 505 this._injectCategoryStyles();
503 } 506 }
504 this._onViewportResize(); 507 this._onViewportResize();
505 this._refresh(); 508 this._refresh();
506 }, 509 },
507 510
508 willHide: function() 511 willHide: function()
509 { 512 {
(...skipping 1229 matching lines...) Expand 10 before | Expand all | Expand 10 after
1739 1742
1740 /** 1743 /**
1741 * @param {!WebInspector.TimelinePresentationModel.Record} record 1744 * @param {!WebInspector.TimelinePresentationModel.Record} record
1742 * @return {boolean} 1745 * @return {boolean}
1743 */ 1746 */
1744 accept: function(record) 1747 accept: function(record)
1745 { 1748 {
1746 return record.lastChildEndTime >= this._windowStartTime && record.startT ime <= this._windowEndTime; 1749 return record.lastChildEndTime >= this._windowStartTime && record.startT ime <= this._windowEndTime;
1747 } 1750 }
1748 } 1751 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/TimelinePanel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698