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 b5a55f783cae22e2933863a0b251eabc64018d26..ec63e246b1b3214feb49f8882e96bc7463aeae01 100644 |
--- a/Source/devtools/front_end/timeline/TimelinePanel.js |
+++ b/Source/devtools/front_end/timeline/TimelinePanel.js |
@@ -986,16 +986,12 @@ WebInspector.TimelinePanel.prototype = { |
switch (this._selection.type()) { |
case WebInspector.TimelineSelection.Type.Record: |
var record = /** @type {!WebInspector.TimelineModel.Record} */ (this._selection.object()); |
- if (this._tracingTimelineModel) { |
- var event = this._tracingTimelineModel.traceEventFrom(record); |
- this._buildSelectionDetailsForTraceEvent(event); |
- } else { |
- WebInspector.TimelineUIUtils.generateDetailsContent(record, this._model, this._detailsLinkifier, this.showInDetails.bind(this, record.title()), this._model.loadedFromFile()); |
- } |
+ this._uiUtils.generateDetailsContent(record, this._model, this._detailsLinkifier, this.showInDetails.bind(this, record.title()), this._model.loadedFromFile()); |
break; |
case WebInspector.TimelineSelection.Type.TraceEvent: |
var event = /** @type {!WebInspector.TracingModel.Event} */ (this._selection.object()); |
- this._buildSelectionDetailsForTraceEvent(event); |
+ var title = WebInspector.TracingTimelineUIUtils.styleForTraceEvent(event.name).title; |
+ WebInspector.TracingTimelineUIUtils.buildTraceEventDetails(event, this._tracingTimelineModel, this._detailsLinkifier, this.showInDetails.bind(this, title), false, this._model.target()); |
break; |
case WebInspector.TimelineSelection.Type.Frame: |
var frame = /** @type {!WebInspector.TimelineFrame} */ (this._selection.object()); |
@@ -1009,15 +1005,6 @@ WebInspector.TimelinePanel.prototype = { |
} |
}, |
- /** |
- * @param {!WebInspector.TracingModel.Event} event |
- */ |
- _buildSelectionDetailsForTraceEvent: function(event) |
- { |
- var title = WebInspector.TimelineUIUtils.styleForTimelineEvent(event.name).title; |
- WebInspector.TracingTimelineUIUtils.buildTraceEventDetails(event, this._tracingTimelineModel, this._detailsLinkifier, this.showInDetails.bind(this, title), false, this._model.target()); |
- }, |
- |
_updateSelectedRangeStats: function() |
{ |
if (this._selection) |