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

Unified Diff: Source/devtools/front_end/TimelinePanel.js

Issue 183763036: TimelineFlameChart: selectRecord implementation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaselined 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/devtools/front_end/TimelineFlameChart.js ('k') | Source/devtools/front_end/flameChart.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/TimelinePanel.js
diff --git a/Source/devtools/front_end/TimelinePanel.js b/Source/devtools/front_end/TimelinePanel.js
index b0bed26dfd23801f43c1c401d440a6e0e72b8464..c889f42a6234dc97046c2d51ce545fc548448f21 100644
--- a/Source/devtools/front_end/TimelinePanel.js
+++ b/Source/devtools/front_end/TimelinePanel.js
@@ -581,6 +581,7 @@ WebInspector.TimelinePanel.prototype = {
{
this.requestWindowTimes(0, Infinity);
this._windowFilter._reset();
+ delete this._selectedRecord;
if (this._lazyFrameModel)
this._lazyFrameModel.reset();
for (var i = 0; i < this._currentViews.length; ++i)
@@ -749,6 +750,9 @@ WebInspector.TimelinePanel.prototype = {
_updateSelectionDetails: function()
{
+ if (this._selectedRecord)
+ return;
+
var startTime = this._windowStartTime;
var endTime = this._windowEndTime;
@@ -818,6 +822,7 @@ WebInspector.TimelinePanel.prototype = {
selectRecord: function(record)
{
this._detailsLinkifier.reset();
+ this._selectedRecord = record;
if (!record) {
this._updateSelectionDetails();
« no previous file with comments | « Source/devtools/front_end/TimelineFlameChart.js ('k') | Source/devtools/front_end/flameChart.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698