Commit c7ecb121 authored by alph@chromium.org's avatar alph@chromium.org

DevTools: Opened screenshot view is seen chopped in "Summery" section of Timeline.

BUG=525377

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

git-svn-id: svn://svn.chromium.org/blink/trunk@201332 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 429a60d1
......@@ -1456,7 +1456,7 @@ WebInspector.TimelineUIUtils.generateDetailsContentForFrame = function(frameMode
var filmStripPreview = createElementWithClass("img", "timeline-filmstrip-preview");
filmStripFrame.imageDataPromise().then(onGotImageData.bind(null, filmStripPreview));
contentHelper.appendElementRow(WebInspector.UIString("Screenshot"), filmStripPreview);
filmStripPreview.addEventListener("click", filmStripClicked.bind(null, filmStripFrame), false);
filmStripPreview.addEventListener("click", frameClicked.bind(null, filmStripFrame), false);
}
var durationInMillis = frame.endTime - frame.startTime;
contentHelper.appendTextRow(WebInspector.UIString("FPS"), Math.floor(1000 / durationInMillis));
......@@ -1480,9 +1480,9 @@ WebInspector.TimelineUIUtils.generateDetailsContentForFrame = function(frameMode
/**
* @param {!WebInspector.FilmStripModel.Frame} filmStripFrame
*/
function filmStripClicked(filmStripFrame)
function frameClicked(filmStripFrame)
{
WebInspector.Dialog.show(null, new WebInspector.FilmStripView.DialogDelegate(filmStripFrame, 0));
new WebInspector.FilmStripView.DialogDelegate(filmStripFrame, 0);
}
return contentHelper.element;
......
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