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

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

Issue 336373002: Parametrize TimelinePresentationModel with coalescable record types (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
« no previous file with comments | « no previous file | Source/devtools/front_end/timeline/TimelinePresentationModel.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4ddcfdda14caf528d393d9ff79cbe6de9f3b8937..6cdb8c6821e8cc11f9d6fa21a6378d85369a4347 100644
--- a/Source/devtools/front_end/timeline/TimelinePanel.js
+++ b/Source/devtools/front_end/timeline/TimelinePanel.js
@@ -273,8 +273,10 @@ WebInspector.TimelinePanel.prototype = {
*/
_timelineView: function()
{
- if (!this._lazyTimelineView)
- this._lazyTimelineView = new WebInspector.TimelineView(this, this._model);
+ if (!this._lazyTimelineView) {
+ var coalescableRecordTypes = this._tracingTimelineModel ? WebInspector.TracingTimelineUIUtils.coalescableRecordTypes : WebInspector.TimelineUIUtils.coalescableRecordTypes;
+ this._lazyTimelineView = new WebInspector.TimelineView(this, this._model, coalescableRecordTypes);
+ }
return this._lazyTimelineView;
},
« no previous file with comments | « no previous file | Source/devtools/front_end/timeline/TimelinePresentationModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698