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

Issue 754813002: Expose setting API to set ImageAnimationPolicy(Allowed, Once, None) (Closed)

Created:
6 years ago by je_julie(Not used)
Modified:
6 years ago
Reviewers:
tkent, *dmazzoni, Mike West
CC:
blink-reviews, blink-reviews-rendering, zoltan1, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, dglazkov+blink, jchaffraix+rendering
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Expose setting API to set ImageAnimationPolicy(Allowed, Once, None). This patch makes blink support three types(Allowed, Once, None) for animated image setting and adds two new APIs, ImageObserver::imageAnimationPolicy and ImageResourceClient::getImageAnimationPolicy to get animation policy setting. BUG=3690 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=186217

Patch Set 1 #

Patch Set 2 : Support three options for animations #

Total comments: 10

Patch Set 3 : Update code with new enum type, ImageAnimationPolicy #

Patch Set 4 : Update with fix layout test fail #

Total comments: 12

Patch Set 5 : Update Code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -3 lines) Patch
M Source/core/fetch/ImageResource.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/fetch/ImageResource.cpp View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M Source/core/fetch/ImageResourceClient.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M Source/core/frame/Settings.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/frame/Settings.in View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/RenderObject.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/RenderObject.cpp View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M Source/platform/blink_platform.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/platform/graphics/BitmapImage.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M Source/platform/graphics/BitmapImage.cpp View 1 2 3 4 5 chunks +14 lines, -3 lines 0 comments Download
M Source/platform/graphics/BitmapImageTest.cpp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A Source/platform/graphics/ImageAnimationPolicy.h View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
M Source/platform/graphics/ImageObserver.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M Source/web/AssertMatchingEnums.cpp View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M Source/web/WebSettingsImpl.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/WebSettingsImpl.cpp View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M public/web/WebSettings.h View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (5 generated)
je_julie(Not used)
Hello Mike, tkent and Dominic, This patch is to support suspending animation and you can ...
6 years ago (2014-11-24 16:38:56 UTC) #2
dmazzoni
Thanks for this great contribution! I have a naming suggestion, see below. My only other ...
6 years ago (2014-11-24 17:50:48 UTC) #3
Mike West
public/, web/, and platform/ LGTM. Please don't land this CL until Dominic is happy with ...
6 years ago (2014-11-27 09:08:49 UTC) #5
je_julie(Not used)
@Mike, Thanks! @Dominic, I updated patch to follow your comment and I also fixed some ...
6 years ago (2014-11-27 17:22:50 UTC) #6
dmazzoni
lgtm https://codereview.chromium.org/754813002/diff/60001/Source/platform/graphics/ImageAnimationPolicy.h File Source/platform/graphics/ImageAnimationPolicy.h (right): https://codereview.chromium.org/754813002/diff/60001/Source/platform/graphics/ImageAnimationPolicy.h#newcode36 Source/platform/graphics/ImageAnimationPolicy.h:36: // ImageAnimationPolicy is used for controling image animation ...
6 years ago (2014-11-29 07:56:33 UTC) #7
tkent
https://codereview.chromium.org/754813002/diff/60001/Source/core/rendering/RenderObject.cpp File Source/core/rendering/RenderObject.cpp (right): https://codereview.chromium.org/754813002/diff/60001/Source/core/rendering/RenderObject.cpp#newcode2787 Source/core/rendering/RenderObject.cpp:2787: if (document().settings()) { nit: We prefer early return. if ...
6 years ago (2014-12-01 01:45:34 UTC) #8
je_julie(Not used)
@Dominc and @tkent, Thanks for review. I updated code. PTAL. https://codereview.chromium.org/754813002/diff/60001/Source/core/rendering/RenderObject.cpp File Source/core/rendering/RenderObject.cpp (right): https://codereview.chromium.org/754813002/diff/60001/Source/core/rendering/RenderObject.cpp#newcode2787 ...
6 years ago (2014-12-01 05:29:24 UTC) #9
tkent
lgtm
6 years ago (2014-12-01 05:34:52 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/754813002/80001
6 years ago (2014-12-01 05:35:29 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/39106)
6 years ago (2014-12-01 07:43:04 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/754813002/80001
6 years ago (2014-12-01 07:44:20 UTC) #16
commit-bot: I haz the power
6 years ago (2014-12-01 08:23:10 UTC) #17
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=186217

Powered by Google App Engine
This is Rietveld 408576698