|
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
|
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
|
Total messages: 6 (0 generated)
|