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

Issue 292173009: Web Animations - responsive interpolation (Closed)

Created:
6 years, 7 months ago by Eric Willigers
Modified:
6 years, 7 months ago
CC:
blink-reviews, ed+blinkwatch_opera.com, shans, rjwright, Mike Lawther (Google), blink-reviews-animation_chromium.org, blink-reviews-css, rune+blink, dglazkov+blink, apavlov+blink_chromium.org, rwlbuis, darktears, Steve Block
Base URL:
https://chromium.googlesource.com/chromium/blink.git@0519_MySeparation
Visibility:
Public.

Description

Web Animations - responsive interpolation Whenever inheriting to and from CSS values like inherit or currentColor, or compound values containing font-dependent lengths, we avoid capturing the styles up-front. Instead, we only obtain the start and end styles when it is time to interpolate between them. BUG=361948 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=174900

Patch Set 1 #

Patch Set 2 : applyAndSnapshotAnimatableValue #

Total comments: 17

Patch Set 3 : unit test #

Total comments: 1

Patch Set 4 : zeroLengthArray not needed #

Total comments: 7

Patch Set 5 : ConciseColorTest #

Total comments: 2

Patch Set 6 : transform tests #

Patch Set 7 : filter tests #

Patch Set 8 : RELEASE_ASSERT #

Total comments: 1

Patch Set 9 : fixme for CSSBasicShape #

Patch Set 10 : SVG Paint #

Unified diffs Side-by-side diffs Delta from patch set Stats (+733 lines, -97 lines) Patch
A + LayoutTests/web-animations-api/animations-responsive-backgroundPosition.html View 1 1 chunk +6 lines, -3 lines 0 comments Download
A + LayoutTests/web-animations-api/animations-responsive-backgroundSize.html View 1 1 chunk +7 lines, -13 lines 0 comments Download
A + LayoutTests/web-animations-api/animations-responsive-borderImageWidth.html View 1 1 chunk +7 lines, -13 lines 0 comments Download
A LayoutTests/web-animations-api/animations-responsive-borderRadius.html View 1 1 chunk +39 lines, -0 lines 0 comments Download
A + LayoutTests/web-animations-api/animations-responsive-boxShadow.html View 1 1 chunk +12 lines, -10 lines 0 comments Download
A LayoutTests/web-animations-api/animations-responsive-fontSize.html View 1 1 chunk +42 lines, -0 lines 0 comments Download
A LayoutTests/web-animations-api/animations-responsive-fontWeight.html View 1 1 chunk +42 lines, -0 lines 0 comments Download
A + LayoutTests/web-animations-api/animations-responsive-textIndent.html View 1 1 chunk +10 lines, -10 lines 0 comments Download
M LayoutTests/web-animations-api/animations-responsive-to-color-change.html View 1 1 chunk +189 lines, -8 lines 0 comments Download
D LayoutTests/web-animations-api/animations-responsive-to-color-change-expected.txt View 1 1 chunk +0 lines, -4 lines 0 comments Download
M LayoutTests/web-animations-api/animations-responsive-to-inherited-change.html View 1 1 chunk +33 lines, -5 lines 0 comments Download
D LayoutTests/web-animations-api/animations-responsive-to-inherited-change-expected.txt View 1 1 chunk +0 lines, -4 lines 0 comments Download
M LayoutTests/web-animations-api/animations-responsive-to-style-change.html View 1 3 chunks +3 lines, -3 lines 0 comments Download
A + LayoutTests/web-animations-api/animations-responsive-transform.html View 1 1 chunk +7 lines, -13 lines 0 comments Download
M Source/core/animation/CompositorAnimations.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/animation/InterpolableValue.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/animation/StringKeyframe.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/animation/StringKeyframe.cpp View 1 2 2 chunks +6 lines, -2 lines 0 comments Download
A Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.h View 1 2 3 4 5 6 7 8 1 chunk +53 lines, -0 lines 0 comments Download
A Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +154 lines, -0 lines 0 comments Download
A Source/core/animation/interpolation/DeferredLegacyStyleInterpolationTest.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +100 lines, -0 lines 0 comments Download
M Source/core/core.gypi View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/css/CSSPrimitiveValue.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/resolver/StyleResolver.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/css/resolver/StyleResolver.cpp View 1 2 1 chunk +14 lines, -6 lines 0 comments Download

Messages

Total messages: 42 (0 generated)
Eric Willigers
6 years, 7 months ago (2014-05-25 23:41:49 UTC) #1
dstockwell
https://codereview.chromium.org/292173009/diff/20001/Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.cpp File Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.cpp (right): https://codereview.chromium.org/292173009/diff/20001/Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.cpp#newcode41 Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.cpp:41: return false; Shouldn't the default be true? https://codereview.chromium.org/292173009/diff/20001/Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.cpp#newcode43 Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.cpp:43: ...
6 years, 7 months ago (2014-05-26 01:16:03 UTC) #2
shans
Overall approach looks good. https://codereview.chromium.org/292173009/diff/20001/Source/core/animation/StringKeyframe.cpp File Source/core/animation/StringKeyframe.cpp (right): https://codereview.chromium.org/292173009/diff/20001/Source/core/animation/StringKeyframe.cpp#newcode123 Source/core/animation/StringKeyframe.cpp:123: m_animatableValueCache = StyleResolver::applyAndSnapshotAnimatableValue(*element, property, *fromCSSValue); ...
6 years, 7 months ago (2014-05-26 03:31:01 UTC) #3
alancutter (OOO until 2018)
https://codereview.chromium.org/292173009/diff/20001/Source/core/animation/StringKeyframe.h File Source/core/animation/StringKeyframe.h (left): https://codereview.chromium.org/292173009/diff/20001/Source/core/animation/StringKeyframe.h#oldcode39 Source/core/animation/StringKeyframe.h:39: ASSERT(m_animatableValueCache); On 2014/05/26 03:31:01, shans wrote: > Why did ...
6 years, 7 months ago (2014-05-26 05:22:41 UTC) #4
Eric Willigers
https://codereview.chromium.org/292173009/diff/20001/Source/core/animation/StringKeyframe.cpp File Source/core/animation/StringKeyframe.cpp (right): https://codereview.chromium.org/292173009/diff/20001/Source/core/animation/StringKeyframe.cpp#newcode123 Source/core/animation/StringKeyframe.cpp:123: m_animatableValueCache = StyleResolver::applyAndSnapshotAnimatableValue(*element, property, *fromCSSValue); On 2014/05/26 03:31:01, shans ...
6 years, 7 months ago (2014-05-26 06:32:47 UTC) #5
alancutter (OOO until 2018)
https://codereview.chromium.org/292173009/diff/60001/Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.cpp File Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.cpp (right): https://codereview.chromium.org/292173009/diff/60001/Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.cpp#newcode235 Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.cpp:235: case CSSValueYellowgreen: This makes me sad. ): I personally ...
6 years, 7 months ago (2014-05-26 10:12:08 UTC) #6
shans
https://codereview.chromium.org/292173009/diff/60001/Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.cpp File Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.cpp (right): https://codereview.chromium.org/292173009/diff/60001/Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.cpp#newcode235 Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.cpp:235: case CSSValueYellowgreen: On 2014/05/26 10:12:10, alancutter wrote: > This ...
6 years, 7 months ago (2014-05-26 10:47:48 UTC) #7
dstockwell
https://codereview.chromium.org/292173009/diff/40001/Source/core/css/resolver/StyleResolver.cpp File Source/core/css/resolver/StyleResolver.cpp (right): https://codereview.chromium.org/292173009/diff/40001/Source/core/css/resolver/StyleResolver.cpp#newcode758 Source/core/css/resolver/StyleResolver.cpp:758: if (element.renderStyle()) Do we ever need to use the ...
6 years, 7 months ago (2014-05-26 11:20:40 UTC) #8
alancutter (OOO until 2018)
https://codereview.chromium.org/292173009/diff/60001/Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.cpp File Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.cpp (right): https://codereview.chromium.org/292173009/diff/60001/Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.cpp#newcode41 Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.cpp:41: return true; On 2014/05/26 11:20:40, dstockwell wrote: > I ...
6 years, 7 months ago (2014-05-26 15:51:32 UTC) #9
dstockwell
https://codereview.chromium.org/292173009/diff/60001/Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.cpp File Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.cpp (right): https://codereview.chromium.org/292173009/diff/60001/Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.cpp#newcode41 Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.cpp:41: return true; On 2014/05/26 15:51:32, alancutter wrote: > On ...
6 years, 7 months ago (2014-05-26 23:40:14 UTC) #10
alancutter (OOO until 2018)
https://codereview.chromium.org/292173009/diff/60001/Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.cpp File Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.cpp (right): https://codereview.chromium.org/292173009/diff/60001/Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.cpp#newcode41 Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.cpp:41: return true; On 2014/05/26 23:40:15, dstockwell wrote: > On ...
6 years, 7 months ago (2014-05-26 23:48:25 UTC) #11
dstockwell
On 2014/05/26 23:48:25, alancutter wrote: > https://codereview.chromium.org/292173009/diff/60001/Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.cpp > File Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.cpp > (right): > > https://codereview.chromium.org/292173009/diff/60001/Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.cpp#newcode41 ...
6 years, 7 months ago (2014-05-26 23:50:41 UTC) #12
alancutter (OOO until 2018)
On 2014/05/26 23:50:41, dstockwell wrote: > On 2014/05/26 23:48:25, alancutter wrote: > > > https://codereview.chromium.org/292173009/diff/60001/Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.cpp ...
6 years, 7 months ago (2014-05-26 23:53:24 UTC) #13
dstockwell
On 2014/05/26 23:53:24, alancutter wrote: > On 2014/05/26 23:50:41, dstockwell wrote: > > On 2014/05/26 ...
6 years, 7 months ago (2014-05-27 00:01:07 UTC) #14
Eric Willigers
On 2014/05/26 10:47:48, shans wrote: > https://codereview.chromium.org/292173009/diff/60001/Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.cpp > File Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.cpp > (right): > > https://codereview.chromium.org/292173009/diff/60001/Source/core/animation/interpolation/DeferredLegacyStyleInterpolation.cpp#newcode235 ...
6 years, 7 months ago (2014-05-27 00:05:14 UTC) #15
alancutter (OOO until 2018)
On 2014/05/27 00:01:07, dstockwell wrote: > On 2014/05/26 23:53:24, alancutter wrote: > > On 2014/05/26 ...
6 years, 7 months ago (2014-05-27 00:11:19 UTC) #16
Eric Willigers
Unit test for transform added. https://codereview.chromium.org/292173009/diff/80001/Source/core/animation/interpolation/DeferredLegacyStyleInterpolationTest.cpp File Source/core/animation/interpolation/DeferredLegacyStyleInterpolationTest.cpp (right): https://codereview.chromium.org/292173009/diff/80001/Source/core/animation/interpolation/DeferredLegacyStyleInterpolationTest.cpp#newcode89 Source/core/animation/interpolation/DeferredLegacyStyleInterpolationTest.cpp:89: On 2014/05/27 00:11:19, alancutter ...
6 years, 7 months ago (2014-05-27 04:20:34 UTC) #17
dstockwell
lgtm
6 years, 7 months ago (2014-05-27 04:32:03 UTC) #18
Eric Willigers
The CQ bit was checked by ericwilligers@chromium.org
6 years, 7 months ago (2014-05-27 05:21:19 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ericwilligers@chromium.org/292173009/120001
6 years, 7 months ago (2014-05-27 05:21:23 UTC) #20
dstockwell
This seems to be failing or timing out in unit tests: AnimationDeferredLegacyStyleInterpolationTest.Inherit
6 years, 7 months ago (2014-05-27 06:45:53 UTC) #21
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-27 06:52:56 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-27 07:09:29 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/9029)
6 years, 7 months ago (2014-05-27 07:09:29 UTC) #24
Eric Willigers
On 2014/05/27 06:45:53, dstockwell wrote: > This seems to be failing or timing out in ...
6 years, 7 months ago (2014-05-27 07:29:25 UTC) #25
Eric Willigers
The CQ bit was checked by ericwilligers@chromium.org
6 years, 7 months ago (2014-05-27 07:29:35 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ericwilligers@chromium.org/292173009/140001
6 years, 7 months ago (2014-05-27 07:29:53 UTC) #27
dstockwell
https://codereview.chromium.org/292173009/diff/140001/Source/core/animation/interpolation/DeferredLegacyStyleInterpolationTest.cpp File Source/core/animation/interpolation/DeferredLegacyStyleInterpolationTest.cpp (right): https://codereview.chromium.org/292173009/diff/140001/Source/core/animation/interpolation/DeferredLegacyStyleInterpolationTest.cpp#newcode26 Source/core/animation/interpolation/DeferredLegacyStyleInterpolationTest.cpp:26: RELEASE_ASSERT(BisonCSSParser::parseValue(dummyStyle.get(), propertyID, string, false, parserMode, 0)); It's probably clearer ...
6 years, 7 months ago (2014-05-27 07:39:54 UTC) #28
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-27 10:58:19 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-27 11:46:31 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/9604)
6 years, 7 months ago (2014-05-27 11:46:31 UTC) #31
alancutter (OOO until 2018)
On 2014/05/27 11:46:31, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 7 months ago (2014-05-27 12:22:43 UTC) #32
Eric Willigers
The CQ bit was checked by ericwilligers@chromium.org
6 years, 7 months ago (2014-05-27 18:16:29 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ericwilligers@chromium.org/292173009/160001
6 years, 7 months ago (2014-05-27 18:16:50 UTC) #34
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 7 months ago (2014-05-27 19:56:22 UTC) #35
commit-bot: I haz the power
Change committed as 174900
6 years, 7 months ago (2014-05-27 21:58:13 UTC) #36
dstockwell
Alan has a fix for the shape issue, but I'm not sure whats going on ...
6 years, 7 months ago (2014-05-28 00:46:21 UTC) #37
Nils Barth (inactive)
On 2014/05/27 21:58:13, I haz the power (commit-bot) wrote: > Change committed as 174900 This ...
6 years, 7 months ago (2014-05-28 01:33:20 UTC) #38
kouhei (in TOK)
On 2014/05/28 01:33:20, Nils Barth wrote: > On 2014/05/27 21:58:13, I haz the power (commit-bot) ...
6 years, 7 months ago (2014-05-28 01:35:24 UTC) #39
Eric Willigers
Some new SVG tests were added just before my change. The very last version of ...
6 years, 7 months ago (2014-05-28 01:36:24 UTC) #40
kouhei (in TOK)
> I think this can be fixed by simply removing the local variable: > ASSERT(BisonCSSParser::parseValue(dummyStyle.get(), ...
6 years, 7 months ago (2014-05-28 01:37:26 UTC) #41
Timothy Loh
6 years, 7 months ago (2014-05-28 01:39:32 UTC) #42
Message was sent while issue was closed.
On 2014/05/28 01:37:26, kouhei wrote:
> > I think this can be fixed by simply removing the local variable:
> > ASSERT(BisonCSSParser::parseValue(dummyStyle.get(), propertyID, string,
false,
> > parserMode, 0));
> 
> Actually this would prevent running parseValue on release builds so we do need
> ASSERT_UNUSED

alancutter is compiling a quick fix. I think he's changing this to ASSERT_TRUE,
which is from gtest.

Powered by Google App Engine
This is Rietveld 408576698