| Index: Source/devtools/front_end/timeline/TimelineUIUtils.js
|
| diff --git a/Source/devtools/front_end/timeline/TimelineUIUtils.js b/Source/devtools/front_end/timeline/TimelineUIUtils.js
|
| index 5380ab6ce5731a065f67236881c349e93b983816..267e0659922629f176cdf499e7b04e93abdcb45e 100644
|
| --- a/Source/devtools/front_end/timeline/TimelineUIUtils.js
|
| +++ b/Source/devtools/front_end/timeline/TimelineUIUtils.js
|
| @@ -876,11 +876,19 @@ WebInspector.TimelineUIUtils.buildPicturePreviewContent = function(event, target
|
| return;
|
| }
|
| var container = createElement("div");
|
| - container.className = "image-preview-container";
|
| + container.classList.add("image-preview-container", "vbox", "link");
|
| var img = container.createChild("img");
|
| img.src = imageURL;
|
| + var paintProfilerButton = container.createChild("a");
|
| + paintProfilerButton.textContent = WebInspector.UIString("Paint Profiler");
|
| + container.addEventListener("click", showPaintProfiler, false);
|
| callback(container);
|
| }
|
| +
|
| + function showPaintProfiler()
|
| + {
|
| + WebInspector.TimelinePanel.instance().select(WebInspector.TimelineSelection.fromTraceEvent(event), WebInspector.TimelinePanel.DetailsTab.PaintProfiler);
|
| + }
|
| }
|
|
|
| /**
|
|
|