Commit 8f563297 authored by yurys@chromium.org's avatar yurys@chromium.org

Use appropriate UI utils when formatting details for timeline row

BUG=361045
R=loislo@chromium.org

Review URL: https://codereview.chromium.org/324963002

git-svn-id: svn://svn.chromium.org/blink/trunk@175895 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent c876c9f3
......@@ -1070,7 +1070,9 @@ WebInspector.TimelineRecordListRow.prototype = {
if (presentationRecord.coalesced()) {
this._dataElement.createTextChild(WebInspector.UIString("× %d", presentationRecord.presentationChildren().length));
} else {
var detailsNode = WebInspector.TimelineUIUtils.buildDetailsNode(record, this._linkifier, loadedFromFile);
var detailsNode = record instanceof WebInspector.TimelineModel.RecordImpl ?
WebInspector.TimelineUIUtils.buildDetailsNode(record, this._linkifier, loadedFromFile) :
WebInspector.TracingTimelineUIUtils.buildDetailsNodeForTraceEvent(record._event, this._linkifier, loadedFromFile, record.target());
if (detailsNode) {
this._dataElement.appendChild(document.createTextNode("("));
this._dataElement.appendChild(detailsNode);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment