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

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

Issue 180783018: DevTools: follow up to r168484, do not add same parent twice into flame chart. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/TimelineFlameChart.js
diff --git a/Source/devtools/front_end/TimelineFlameChart.js b/Source/devtools/front_end/TimelineFlameChart.js
index 57558cad0280c1966d0e18d797f2bd4cdfe2af2b..abb0e22b5a89ccd94107f9d29009356d27d072f1 100644
--- a/Source/devtools/front_end/TimelineFlameChart.js
+++ b/Source/devtools/front_end/TimelineFlameChart.js
@@ -221,7 +221,7 @@ WebInspector.TimelineFlameChartDataProvider.prototype = {
this._appendRecord(childRecord, level + 1);
currentTime = childEndTime;
}
- if (recordEndTime !== currentTime || record.children.length === 0)
+ if (recordIndex === -1 && recordEndTime !== currentTime || record.children.length === 0)
this._pushRecord(record, true, level, currentTime, recordEndTime);
this._maxStackDepth = Math.max(this._maxStackDepth, level + 2);
« 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