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

Issue 196943029: Web Animations API: Load resources referenced in element.animate() (reland) (Closed)

Created:
6 years, 9 months ago by alancutter (OOO until 2018)
Modified:
6 years, 9 months ago
Reviewers:
dstockwell, esprehn
CC:
blink-reviews, shans, eae+blinkwatch, apavlov+blink_chromium.org, Steve Block, rwlbuis, dino_apple.com, bemjb+rendering_chromium.org, dsinclair, Timothy Loh, dstockwell, dglazkov+blink, jchaffraix+rendering, pdr., rune+blink, Eric Willigers, rjwright, zoltan1, darktears, leviw+renderwatch, Mike Lawther (Google), ed+blinkwatch_opera.com
Visibility:
Public.

Description

Web Animations API: Load resources referenced in element.animate() This patch fixes a bug where resources in element.animate() calls were not being fetched. This resulted in StylePendingImages leaking out of the style resolving stage and into rendering which causes a crash. This patch fixes the bug by ensuring StylePendingImages introduced in applyAnimatedProperties() will be resolved as non-pending StyleImages through an additional call to loadPendingResources(). This patch also modifies AnimatableImage to be a wrapper of CSSValues instead of StyleImages in order to follow the same resource caching logic as typical CSS image values. This patch also updates EffectInput::convert() to pass the document's StyleSheetContents to MutableStylePropertySet::setProperty() so that relative URLs are correctly resolved to absolute URLs. This is a reland of https://codereview.chromium.org/196573030/ with AnimatableImage::create() rewritten to not require an ASSERT. BUG=353385 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169607

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -62 lines) Patch
A LayoutTests/web-animations-api/resource-loading.html View 1 chunk +22 lines, -0 lines 0 comments Download
A LayoutTests/web-animations-api/resource-loading-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/animation/AnimatableImage.h View 2 chunks +10 lines, -8 lines 0 comments Download
M Source/core/animation/AnimatableImage.cpp View 2 chunks +9 lines, -33 lines 0 comments Download
M Source/core/animation/AnimatableValueTestHelper.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/animation/EffectInput.cpp View 2 chunks +3 lines, -1 line 0 comments Download
M Source/core/animation/css/CSSAnimatableValueFactory.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/resolver/AnimatedStyleBuilder.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M Source/core/css/resolver/ElementStyleResources.h View 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/css/resolver/ElementStyleResources.cpp View 1 chunk +10 lines, -0 lines 0 comments Download
M Source/core/css/resolver/StyleResolver.h View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/css/resolver/StyleResolver.cpp View 6 chunks +14 lines, -9 lines 0 comments Download
M Source/core/css/resolver/StyleResourceLoader.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/css/resolver/StyleResourceLoader.cpp View 4 chunks +6 lines, -2 lines 0 comments Download
M Source/core/rendering/style/StyleFetchedImage.cpp View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
alancutter (OOO until 2018)
6 years, 9 months ago (2014-03-19 23:16:37 UTC) #1
dstockwell
> This is a reland of https://codereview.chromium.org/196573030/ with AnimatableImage::create() rewritten to not require an ASSERT. ...
6 years, 9 months ago (2014-03-20 00:27:03 UTC) #2
alancutter (OOO until 2018)
On 2014/03/20 00:27:03, dstockwell wrote: > > This is a reland of https://codereview.chromium.org/196573030/ with > ...
6 years, 9 months ago (2014-03-20 00:34:00 UTC) #3
dstockwell
lgtm
6 years, 9 months ago (2014-03-20 00:36:25 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alancutter@chromium.org/196943029/1
6 years, 9 months ago (2014-03-20 00:36:28 UTC) #5
commit-bot: I haz the power
6 years, 9 months ago (2014-03-20 03:55:54 UTC) #6
Message was sent while issue was closed.
Change committed as 169607

Powered by Google App Engine
This is Rietveld 408576698