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

Issue 2199103002: DevTools: fix animations panel after image loading became async (Closed)

Created:
4 years, 4 months ago by luoe
Modified:
4 years, 4 months ago
Reviewers:
lushnikov
CC:
chromium-reviews, caseq+blink_chromium.org, shans, rjwright, blink-reviews-animation_chromium.org, darktears, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, sergeyv+blink_chromium.org, Eric Willigers, pfeldman, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: fix animations panel after image loading became async The loading of data URIs is now async, which affected the visibility of animation screenshot popovers. Popover measurement is taken right after being shown, so this CL waits for images to load before taking the measurement. See https://codereview.chromium.org/2173003002 BUG=632529 Committed: https://crrev.com/3b90447cdf5dcc6ea76146ebf3b63881cd7a3e0f Cr-Commit-Position: refs/heads/master@{#409330}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address comments #

Patch Set 3 : jsdoc+1 #

Patch Set 4 : Switched back to using first image #

Patch Set 5 : put into one file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -3 lines) Patch
M third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js View 1 2 3 4 1 chunk +15 lines, -3 lines 0 comments Download

Messages

Total messages: 20 (9 generated)
luoe
Ptal
4 years, 4 months ago (2016-08-01 22:40:00 UTC) #2
lushnikov
https://codereview.chromium.org/2199103002/diff/1/third_party/WebKit/Source/devtools/front_end/animation/AnimationModel.js File third_party/WebKit/Source/devtools/front_end/animation/AnimationModel.js (right): https://codereview.chromium.org/2199103002/diff/1/third_party/WebKit/Source/devtools/front_end/animation/AnimationModel.js#newcode823 third_party/WebKit/Source/devtools/front_end/animation/AnimationModel.js:823: * @param {function(?)=} onImageLoad Let's not pass onImageLoad here ...
4 years, 4 months ago (2016-08-01 23:16:11 UTC) #3
luoe
https://codereview.chromium.org/2199103002/diff/1/third_party/WebKit/Source/devtools/front_end/animation/AnimationModel.js File third_party/WebKit/Source/devtools/front_end/animation/AnimationModel.js (right): https://codereview.chromium.org/2199103002/diff/1/third_party/WebKit/Source/devtools/front_end/animation/AnimationModel.js#newcode823 third_party/WebKit/Source/devtools/front_end/animation/AnimationModel.js:823: * @param {function(?)=} onImageLoad On 2016/08/01 23:16:11, lushnikov wrote: ...
4 years, 4 months ago (2016-08-02 00:24:10 UTC) #4
lushnikov
I don't follow. Why would you postpone adding images to DOM until they load?
4 years, 4 months ago (2016-08-02 00:56:53 UTC) #5
luoe
Prior to this CL, images are requested and then we call popover.showView() before the images ...
4 years, 4 months ago (2016-08-02 01:20:50 UTC) #6
lushnikov
let's just localize everything into a single AnimationTimeline file.
4 years, 4 months ago (2016-08-02 02:19:44 UTC) #8
luoe
Done.
4 years, 4 months ago (2016-08-02 02:40:37 UTC) #9
lushnikov
lgtm, thanks
4 years, 4 months ago (2016-08-02 03:13:42 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2199103002/80001
4 years, 4 months ago (2016-08-02 21:07:33 UTC) #16
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-08-02 21:34:18 UTC) #18
commit-bot: I haz the power
4 years, 4 months ago (2016-08-02 21:36:46 UTC) #20
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/3b90447cdf5dcc6ea76146ebf3b63881cd7a3e0f
Cr-Commit-Position: refs/heads/master@{#409330}

Powered by Google App Engine
This is Rietveld 408576698