| Index: third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js
|
| index fc6b986635f0fa62aa5e5ab4ddf5c81ae8ddd7fc..7a233a49bf3b0144fb2638ca33d17e4a71ab2db7 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js
|
| @@ -1738,6 +1738,17 @@ WebInspector.TimelineUIUtils = class {
|
| }
|
| return span;
|
| }
|
| +
|
| + /**
|
| + * @param {!WebInspector.TimelineModel.PageFrame} frame
|
| + * @param {number=} trimAt
|
| + */
|
| + static displayNameForFrame(frame, trimAt) {
|
| + var url = frame.url;
|
| + if (!trimAt)
|
| + trimAt = 30;
|
| + return url.startsWith('about:') ? `"${frame.name.trimMiddle(trimAt)}"` : frame.url.trimEnd(trimAt);
|
| + }
|
| };
|
|
|
| /**
|
|
|