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

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: 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 c974076e7fe1100608985521116b7e6798067217..3f6521084923e53d3c052d6b59094922077f1eff 100644
--- a/Source/devtools/front_end/timeline/TimelinePanel.js
+++ b/Source/devtools/front_end/timeline/TimelinePanel.js
@@ -204,10 +204,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();
},
/**
@@ -217,10 +214,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;
},
/**

Powered by Google App Engine
This is Rietveld 408576698