| Index: third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js b/third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js
|
| index e6ecf4a074d27b93c4b27d29de9ec95a478e5d92..71aba877044d69e0f1c201644413993fed4ef5be 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js
|
| @@ -194,9 +194,21 @@ WebInspector.AnimationTimeline.prototype = {
|
| var screenshots = animGroup.screenshots();
|
| if (!screenshots.length)
|
| return;
|
| - var content = new WebInspector.AnimationScreenshotPopover(screenshots);
|
| - popover.setNoMargins(true);
|
| - popover.showView(content, anchor);
|
| +
|
| + if (!screenshots[0].complete)
|
| + screenshots[0].onload = onFirstScreenshotLoaded.bind(null, screenshots);
|
| + else
|
| + onFirstScreenshotLoaded(screenshots);
|
| +
|
| + /**
|
| + * @param {!Array.<!Image>} screenshots
|
| + */
|
| + function onFirstScreenshotLoaded(screenshots)
|
| + {
|
| + var content = new WebInspector.AnimationScreenshotPopover(screenshots);
|
| + popover.setNoMargins(true);
|
| + popover.showView(content, anchor);
|
| + }
|
| },
|
|
|
| _onHidePopover: function()
|
|
|