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

Unified Diff: Source/devtools/front_end/timeline/TimelineTracingView.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/TimelineTracingView.js
diff --git a/Source/devtools/front_end/timeline/TimelineTracingView.js b/Source/devtools/front_end/timeline/TimelineTracingView.js
index f36ba2e5ad58ffd4664e331a198625709643c4ce..681ef95e0517e66de8413b5006561501d4a91bff 100644
--- a/Source/devtools/front_end/timeline/TimelineTracingView.js
+++ b/Source/devtools/front_end/timeline/TimelineTracingView.js
@@ -316,7 +316,7 @@ WebInspector.TraceViewFlameChartDataProvider.prototype = {
this._currentLevel = 0;
this._headerTitles = {};
this._minimumBoundary = this._timelineModelForMinimumBoundary.minimumRecordTime();
- this._timeSpan = Math.max((this._model.maximumRecordTime() || 0) - this._minimumBoundary, 1000);
+ this._timeSpan = Math.max(this._model.maximumRecordTime() - this._minimumBoundary, 1000);
var processes = this._model.sortedProcesses();
for (var processIndex = 0; processIndex < processes.length; ++processIndex) {
var process = processes[processIndex];
« no previous file with comments | « Source/devtools/front_end/timeline/TimelinePanel.js ('k') | Source/devtools/front_end/timeline/TimelineView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698