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

Issue 196573030: Web Animations API: Load resources referenced in element.animate() (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. BUG=353385 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169424

Patch Set 1 #

Total comments: 2

Patch Set 2 : Removed asserts. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+88 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 +8 lines, -8 lines 0 comments Download
M Source/core/animation/AnimatableImage.cpp View 1 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 2 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: 11 (0 generated)
alancutter (OOO until 2018)
This patch basically rewrites AnimatableImage to wrap CSSValues in order to integrate properly with the ...
6 years, 9 months ago (2014-03-18 00:52:34 UTC) #1
dstockwell
This is a big patch. Can you update the description to explain what the bug ...
6 years, 9 months ago (2014-03-18 01:02:34 UTC) #2
alancutter (OOO until 2018)
On 2014/03/18 01:02:34, dstockwell wrote: > This is a big patch. Can you update the ...
6 years, 9 months ago (2014-03-18 02:43:52 UTC) #3
alancutter (OOO until 2018)
+esprehn for StyleResolver changes.
6 years, 9 months ago (2014-03-18 02:46:54 UTC) #4
esprehn
lgtm, one comment. https://codereview.chromium.org/196573030/diff/20001/Source/core/css/resolver/StyleResolver.cpp File Source/core/css/resolver/StyleResolver.cpp (right): https://codereview.chromium.org/196573030/diff/20001/Source/core/css/resolver/StyleResolver.cpp#newcode1094 Source/core/css/resolver/StyleResolver.cpp:1094: loadPendingResources(state); The callers of this should ...
6 years, 9 months ago (2014-03-18 02:58:55 UTC) #5
alancutter (OOO until 2018)
https://codereview.chromium.org/196573030/diff/20001/Source/core/css/resolver/StyleResolver.cpp File Source/core/css/resolver/StyleResolver.cpp (right): https://codereview.chromium.org/196573030/diff/20001/Source/core/css/resolver/StyleResolver.cpp#newcode1094 Source/core/css/resolver/StyleResolver.cpp:1094: loadPendingResources(state); On 2014/03/18 02:58:56, esprehn wrote: > The callers ...
6 years, 9 months ago (2014-03-18 03:54:30 UTC) #6
esprehn
On 2014/03/18 03:54:30, alancutter wrote: > https://codereview.chromium.org/196573030/diff/20001/Source/core/css/resolver/StyleResolver.cpp > File Source/core/css/resolver/StyleResolver.cpp (right): > > https://codereview.chromium.org/196573030/diff/20001/Source/core/css/resolver/StyleResolver.cpp#newcode1094 > ...
6 years, 9 months ago (2014-03-18 06:26:09 UTC) #7
esprehn
The CQ bit was checked by esprehn@chromium.org
6 years, 9 months ago (2014-03-18 06:27:05 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alancutter@chromium.org/196573030/20001
6 years, 9 months ago (2014-03-18 06:27:08 UTC) #9
commit-bot: I haz the power
Change committed as 169424
6 years, 9 months ago (2014-03-18 07:30:20 UTC) #10
alancutter (OOO until 2018)
6 years, 9 months ago (2014-03-19 10:59:19 UTC) #11
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/203413008/ by alancutter@chromium.org.

The reason for reverting is: Causing assertion failure in ChromeOS
browser_tests.
https://code.google.com/p/chromium/issues/detail?id=353962.

Powered by Google App Engine
This is Rietveld 408576698