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

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

Issue 185323002: DevTools: prepare to move UI builders from timeline presentation record to timeline ui utils. (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
Index: Source/devtools/front_end/TimelineUIUtils.js
diff --git a/Source/devtools/front_end/TimelineUIUtils.js b/Source/devtools/front_end/TimelineUIUtils.js
index 896108f5eab4bcbc2979738bfa49ac37397d628b..febc2820a019460a1ded6df850e2ee5af7804894 100644
--- a/Source/devtools/front_end/TimelineUIUtils.js
+++ b/Source/devtools/front_end/TimelineUIUtils.js
@@ -232,16 +232,15 @@ WebInspector.TimelineUIUtils.generateMainThreadBarPopupContent = function(model,
}
/**
- * @param {!WebInspector.TimelineModel} model
* @param {!TimelineAgent.TimelineEvent} record
* @return {string}
*/
-WebInspector.TimelineUIUtils.recordTitle = function(model, record)
+WebInspector.TimelineUIUtils.recordTitle = function(record)
{
if (record.type === WebInspector.TimelineModel.RecordType.TimeStamp)
return record.data["message"];
if (WebInspector.TimelineUIUtils.isEventDivider(record)) {
- var startTime = Number.millisToString(record.startTime - model.minimumRecordTime());
+ var startTime = Number.millisToString(record.startTimeOffset);
return WebInspector.UIString("%s at %s", WebInspector.TimelineUIUtils.recordStyle(record).title, startTime, true);
}
return WebInspector.TimelineUIUtils.recordStyle(record).title;

Powered by Google App Engine
This is Rietveld 408576698