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

Issue 1120963003: Implements getImageAnimationPolicy() at ImageLoader. (Closed)

Created:
5 years, 7 months ago by je_julie(Not used)
Modified:
5 years, 6 months ago
CC:
darktears, blink-reviews, blink-reviews-animation_chromium.org, Rik, danakj, dshwang, krit, dstockwell, Eric Willigers, f(malita), gavinp+loader_chromium.org, Nate Chapin, jbroman, Justin Novosad, Mike Lawther (Google), pdr+graphicswatchlist_chromium.org, rjwright, rwlbuis, Stephen Chennney, shans, Steve Block, Timothy Loh, tyoshino+watch_chromium.org, Yoav Weiss
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Implements getImageAnimationPolicy() at ImageLoader. AnimationPolicy is generally updated at notifyFinished(). But if it does not have LayoutObject yet at notifyFinished(), AnimationPolicy couldn't be updated and keeps default value, ImageAnimationPolicyAllowed because another ImageResourceClient, ImageLoader, doesn't have implementation for getImageAnimationPolicy(). This patch implements getImageAnimationPolicy() at ImageLoader and makes ImageResource have correct animation policy. BUG=483474 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196068

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add getImageAnimationPolicy to ImageLoader #

Patch Set 3 : Removes ASSERT #

Patch Set 4 : Adds LayoutTest #

Patch Set 5 : Updated TC without setTimeout #

Total comments: 1

Patch Set 6 : Adds Internals::advanceTimeWithImage #

Total comments: 4

Patch Set 7 : Update API name #

Patch Set 8 : Update API name. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -0 lines) Patch
A LayoutTests/accessibility/animation-blue.gif View 1 2 3 Binary file 0 comments Download
A LayoutTests/accessibility/animation-green.gif View 1 2 3 Binary file 0 comments Download
A LayoutTests/accessibility/animation-policy.html View 1 2 3 4 5 6 7 1 chunk +37 lines, -0 lines 0 comments Download
A LayoutTests/accessibility/animation-policy-expected.html View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/loader/ImageLoader.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/loader/ImageLoader.cpp View 1 2 3 2 chunks +10 lines, -0 lines 0 comments Download
M Source/core/testing/Internals.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/testing/Internals.cpp View 1 2 3 4 5 6 7 2 chunks +29 lines, -0 lines 0 comments Download
M Source/core/testing/Internals.idl View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M Source/platform/graphics/BitmapImage.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M Source/platform/graphics/BitmapImage.cpp View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download
M Source/platform/graphics/Image.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 27 (5 generated)
je_julie(Not used)
PTAL.
5 years, 7 months ago (2015-05-01 21:53:16 UTC) #2
Mike West
Adding esprehn@, as I think he knows more about animation than I do. https://codereview.chromium.org/1120963003/diff/1/Source/core/fetch/ImageResource.cpp File ...
5 years, 7 months ago (2015-05-01 22:43:23 UTC) #4
je_julie(Not used)
On 2015/05/01 22:43:23, Mike West (traveling. slow.) wrote: > Adding esprehn@, as I think he ...
5 years, 7 months ago (2015-05-03 09:13:12 UTC) #5
je_julie(Not used)
@haraken, Could you take a look at this CL? Because you reviewed the CL, 892783003, ...
5 years, 7 months ago (2015-05-08 11:39:01 UTC) #7
haraken
On 2015/05/08 11:39:01, je_julie wrote: > @haraken, > Could you take a look at this ...
5 years, 7 months ago (2015-05-08 23:13:52 UTC) #8
je_julie(Not used)
On 2015/05/08 23:13:52, haraken wrote: > On 2015/05/08 11:39:01, je_julie wrote: > > @haraken, > ...
5 years, 7 months ago (2015-05-09 04:27:48 UTC) #9
esprehn
No test?
5 years, 7 months ago (2015-05-22 22:01:26 UTC) #10
je_julie(Not used)
On 2015/05/22 22:01:26, esprehn wrote: > No test? I realised that I can try to ...
5 years, 7 months ago (2015-05-24 14:32:34 UTC) #11
esprehn
We can't put a 100ms delay in a test, you need some way to do ...
5 years, 7 months ago (2015-05-26 00:27:56 UTC) #12
je_julie(Not used)
On 2015/05/26 00:27:56, esprehn wrote: > We can't put a 100ms delay in a test, ...
5 years, 7 months ago (2015-05-26 23:20:01 UTC) #13
esprehn
https://codereview.chromium.org/1120963003/diff/80001/LayoutTests/accessibility/animation-policy.html File LayoutTests/accessibility/animation-policy.html (right): https://codereview.chromium.org/1120963003/diff/80001/LayoutTests/accessibility/animation-policy.html#newcode19 LayoutTests/accessibility/animation-policy.html:19: if (Date.now() - prevTime > 100) { This is ...
5 years, 7 months ago (2015-05-26 23:29:16 UTC) #14
esprehn
On 2015/05/26 at 23:29:16, esprehn wrote: > https://codereview.chromium.org/1120963003/diff/80001/LayoutTests/accessibility/animation-policy.html > File LayoutTests/accessibility/animation-policy.html (right): > > https://codereview.chromium.org/1120963003/diff/80001/LayoutTests/accessibility/animation-policy.html#newcode19 ...
5 years, 7 months ago (2015-05-26 23:30:21 UTC) #15
dmazzoni
I did a quick search and I can't find any existing tests for animated gifs ...
5 years, 7 months ago (2015-05-26 23:52:30 UTC) #16
je_julie(Not used)
On 2015/05/26 23:52:30, dmazzoni wrote: > I did a quick search and I can't find ...
5 years, 7 months ago (2015-05-27 15:05:38 UTC) #17
dmazzoni
https://codereview.chromium.org/1120963003/diff/100001/Source/core/testing/Internals.h File Source/core/testing/Internals.h (right): https://codereview.chromium.org/1120963003/diff/100001/Source/core/testing/Internals.h#newcode114 Source/core/testing/Internals.h:114: // Advances Time to test whether animated images work ...
5 years, 7 months ago (2015-05-27 15:15:30 UTC) #18
je_julie(Not used)
I updated API name with deltaTimeInSeconds. PTAL. https://codereview.chromium.org/1120963003/diff/100001/Source/core/testing/Internals.h File Source/core/testing/Internals.h (right): https://codereview.chromium.org/1120963003/diff/100001/Source/core/testing/Internals.h#newcode114 Source/core/testing/Internals.h:114: // Advances ...
5 years, 7 months ago (2015-05-27 16:48:38 UTC) #19
esprehn
Plea fix the naming so its clear it has side effects so either setDeltaSeconds or ...
5 years, 6 months ago (2015-05-28 05:51:14 UTC) #20
dmazzoni
Yeah, sorry if I wasn't clear in my feedback. I wanted deltaTimeInSeconds to be the ...
5 years, 6 months ago (2015-05-28 06:06:46 UTC) #21
je_julie(Not used)
Dominic and esprehn, Thanks for helping me to solve the problem. I renamed the API ...
5 years, 6 months ago (2015-05-28 11:03:19 UTC) #22
dmazzoni
lgtm Looks great now, thanks!
5 years, 6 months ago (2015-05-28 14:48:38 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1120963003/140001
5 years, 6 months ago (2015-05-28 14:49:08 UTC) #26
commit-bot: I haz the power
5 years, 6 months ago (2015-05-28 15:55:24 UTC) #27
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=196068

Powered by Google App Engine
This is Rietveld 408576698