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

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

Issue 322783002: Initialize min/max record time to 0 instead of -1 or null (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase 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 side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/timeline/TimelinePanel.js
diff --git a/Source/devtools/front_end/timeline/TimelinePanel.js b/Source/devtools/front_end/timeline/TimelinePanel.js
index 3b5194a8558bc4634cfc78bfe063b809930d634e..fdc46a43b22d843efef7fde7bba644cc2a0fca77 100644
--- a/Source/devtools/front_end/timeline/TimelinePanel.js
+++ b/Source/devtools/front_end/timeline/TimelinePanel.js
@@ -202,10 +202,7 @@ WebInspector.TimelinePanel.prototype = {
{
if (this._windowStartTime)
return this._windowStartTime;
- var minimumRecordTime = this._model.minimumRecordTime();
- if (minimumRecordTime && minimumRecordTime !== -1)
- return minimumRecordTime;
- return 0;
+ return this._model.minimumRecordTime();
},
/**
@@ -215,10 +212,7 @@ WebInspector.TimelinePanel.prototype = {
{
if (this._windowEndTime < Infinity)
return this._windowEndTime;
- var maximumRecordTime = this._model.maximumRecordTime();
- if (maximumRecordTime && maximumRecordTime !== -1)
- return maximumRecordTime;
- return Infinity;
+ return this._model.maximumRecordTime() || Infinity;
},
/**
« no previous file with comments | « Source/devtools/front_end/timeline/TimelineOverviewPane.js ('k') | Source/devtools/front_end/timeline/TimelineTracingView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698