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

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

Issue 216713002: TimelineFlameChart: fix for exception in highlightTimeRange which happens when entryIndex is incorr… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 reset: function() 447 reset: function()
448 { 448 {
449 this._automaticallySizeWindow = true; 449 this._automaticallySizeWindow = true;
450 this._dataProvider.reset(); 450 this._dataProvider.reset();
451 this._mainView.setWindowTimes(0, Infinity); 451 this._mainView.setWindowTimes(0, Infinity);
452 }, 452 },
453 453
454 _onRecordingStarted: function() 454 _onRecordingStarted: function()
455 { 455 {
456 this._automaticallySizeWindow = true; 456 this._automaticallySizeWindow = true;
457 this._mainView.reset();
457 }, 458 },
458 459
459 /** 460 /**
460 * @param {!WebInspector.TimelineModel.Record} record 461 * @param {!WebInspector.TimelineModel.Record} record
461 */ 462 */
462 addRecord: function(record) 463 addRecord: function(record)
463 { 464 {
464 this._dataProvider.reset(); 465 this._dataProvider.reset();
465 if (this._automaticallySizeWindow) { 466 if (this._automaticallySizeWindow) {
466 var minimumRecordTime = this._model.minimumRecordTime(); 467 var minimumRecordTime = this._model.minimumRecordTime();
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 */ 527 */
527 _onEntrySelected: function(event) 528 _onEntrySelected: function(event)
528 { 529 {
529 var entryIndex = event.data; 530 var entryIndex = event.data;
530 var record = this._dataProvider._records[entryIndex]; 531 var record = this._dataProvider._records[entryIndex];
531 this._delegate.selectRecord(record); 532 this._delegate.selectRecord(record);
532 }, 533 },
533 534
534 __proto__: WebInspector.VBox.prototype 535 __proto__: WebInspector.VBox.prototype
535 } 536 }
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