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

Issue 22799020: Web Animations CSS: Support Animation of StyleImage and LengthBox (Closed)

Created:
7 years, 4 months ago by dstockwell
Modified:
7 years, 3 months ago
CC:
blink-reviews, shans, rjwright, alancutter (OOO until 2018), Mike Lawther (Google), eae+blinkwatch, Timothy Loh, dstockwell, dglazkov+blink, apavlov+blink_chromium.org, darktears, Steve Block, dino_apple.com, Eric Willigers
Visibility:
Public.

Description

Web Animations CSS: Support Animation of StyleImage and LengthBox This patch adds two new types for animation: * AnimatableImage implements interpolation of images as defined by web-animations: http://dev.w3.org/fxtf/web-animations/#the--image--type * AnimatableLengthBox implements interpolation for the LengthBox platform type. This matches the existing implementation with the exception that it allows interpolation between different length types. Adds support and tests for interpolation of clip. Behavior changes slightly under Web Animations as we step at 50% when smooth interpolation is not defined (eg. between auto and 10px). The existing implementation steps at 0% (http://crbug.com/269451). Note that neither the existing implementation or Web Animations yet support animating a clip when it is not set by some other style (http://crbug.com/279684). A whitelist has been added to allow filtering of properties which do not currently support animation. BUG=258896, 257591 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=156846

Patch Set 1 #

Patch Set 2 : Add a whitelist of animatable properties. #

Patch Set 3 : --no-find-copies #

Patch Set 4 : Simplify whitelist. Assert consistency with CSSPropertyAnimation. #

Patch Set 5 : Animate lists of different lengths. #

Patch Set 6 : AnimatableList -> AnimatableLengthBox #

Patch Set 7 : Support animation of clip:' #

Total comments: 18

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : Fix baselines for new test. #

Total comments: 5

Patch Set 11 : Test more interactions with auto. #

Patch Set 12 : Update length conversion for keywords. #

Total comments: 10

Patch Set 13 : Address review comments. Update tests to use assert functionality. #

Total comments: 2

Patch Set 14 : Update test #

Patch Set 15 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+593 lines, -87 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -3 lines 0 comments Download
A LayoutTests/animations/interpolation/clip-interpolation.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +79 lines, -0 lines 0 comments Download
A LayoutTests/animations/interpolation/clip-interpolation-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +16 lines, -0 lines 0 comments Download
A LayoutTests/virtual/web-animations-css/animations/interpolation/clip-interpolation-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +16 lines, -0 lines 0 comments Download
A Source/core/animation/AnimatableImage.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +73 lines, -0 lines 0 comments Download
A Source/core/animation/AnimatableImage.cpp View 1 2 3 4 5 6 7 8 1 chunk +68 lines, -0 lines 0 comments Download
A Source/core/animation/AnimatableLengthBox.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +78 lines, -0 lines 0 comments Download
A Source/core/animation/AnimatableLengthBox.cpp View 1 2 3 4 5 6 7 8 1 chunk +56 lines, -0 lines 0 comments Download
M Source/core/animation/AnimatableValue.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
M Source/core/animation/css/CSSAnimatableValueFactory.cpp View 1 2 3 4 5 6 5 chunks +32 lines, -75 lines 0 comments Download
M Source/core/animation/css/CSSAnimations.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/animation/css/CSSAnimations.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +110 lines, -0 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/css/CSSComputedStyleDeclaration.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/resolver/AnimatedStyleBuilder.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +45 lines, -6 lines 0 comments Download
M Source/core/css/resolver/StyleResolver.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/page/animation/CSSPropertyAnimation.cpp View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
dstockwell
7 years, 4 months ago (2013-08-22 08:24:42 UTC) #1
alancutter (OOO until 2018)
https://codereview.chromium.org/22799020/diff/19001/Source/core/animation/AnimatableLengthBox.h File Source/core/animation/AnimatableLengthBox.h (right): https://codereview.chromium.org/22799020/diff/19001/Source/core/animation/AnimatableLengthBox.h#newcode67 Source/core/animation/AnimatableLengthBox.h:67: RefPtr<AnimatableValue> m_bottom; We may want to abstract this as ...
7 years, 3 months ago (2013-08-27 02:37:45 UTC) #2
Timothy Loh
https://codereview.chromium.org/22799020/diff/19001/Source/core/animation/AnimatableImage.h File Source/core/animation/AnimatableImage.h (right): https://codereview.chromium.org/22799020/diff/19001/Source/core/animation/AnimatableImage.h#newcode36 Source/core/animation/AnimatableImage.h:36: #include "core/rendering/style/StyleGeneratedImage.h" I think you only use this in ...
7 years, 3 months ago (2013-08-27 04:26:06 UTC) #3
dstockwell
https://codereview.chromium.org/22799020/diff/19001/Source/core/animation/AnimatableImage.h File Source/core/animation/AnimatableImage.h (right): https://codereview.chromium.org/22799020/diff/19001/Source/core/animation/AnimatableImage.h#newcode36 Source/core/animation/AnimatableImage.h:36: #include "core/rendering/style/StyleGeneratedImage.h" On 2013/08/27 04:26:06, Timothy Loh wrote: > ...
7 years, 3 months ago (2013-08-27 05:02:01 UTC) #4
Timothy Loh
https://codereview.chromium.org/22799020/diff/47001/LayoutTests/animations/interpolation/clip-interpolation-expected.txt File LayoutTests/animations/interpolation/clip-interpolation-expected.txt (right): https://codereview.chromium.org/22799020/diff/47001/LayoutTests/animations/interpolation/clip-interpolation-expected.txt#newcode6 LayoutTests/animations/interpolation/clip-interpolation-expected.txt:6: clip from [rect(auto, auto, auto, 10px)] to [rect(20px, 50px, ...
7 years, 3 months ago (2013-08-27 05:48:17 UTC) #5
Timothy Loh
https://codereview.chromium.org/22799020/diff/47001/LayoutTests/animations/interpolation/clip-interpolation-expected.txt File LayoutTests/animations/interpolation/clip-interpolation-expected.txt (right): https://codereview.chromium.org/22799020/diff/47001/LayoutTests/animations/interpolation/clip-interpolation-expected.txt#newcode6 LayoutTests/animations/interpolation/clip-interpolation-expected.txt:6: clip from [rect(auto, auto, auto, 10px)] to [rect(20px, 50px, ...
7 years, 3 months ago (2013-08-27 05:59:53 UTC) #6
dstockwell
https://codereview.chromium.org/22799020/diff/47001/LayoutTests/animations/interpolation/clip-interpolation-expected.txt File LayoutTests/animations/interpolation/clip-interpolation-expected.txt (right): https://codereview.chromium.org/22799020/diff/47001/LayoutTests/animations/interpolation/clip-interpolation-expected.txt#newcode6 LayoutTests/animations/interpolation/clip-interpolation-expected.txt:6: clip from [rect(auto, auto, auto, 10px)] to [rect(20px, 50px, ...
7 years, 3 months ago (2013-08-27 06:26:23 UTC) #7
Steve Block
lgtm https://codereview.chromium.org/22799020/diff/40001/LayoutTests/animations/interpolation/clip-interpolation.html File LayoutTests/animations/interpolation/clip-interpolation.html (right): https://codereview.chromium.org/22799020/diff/40001/LayoutTests/animations/interpolation/clip-interpolation.html#newcode54 LayoutTests/animations/interpolation/clip-interpolation.html:54: }); It would be good to test interpolation ...
7 years, 3 months ago (2013-08-28 03:44:23 UTC) #8
dstockwell
https://codereview.chromium.org/22799020/diff/40001/LayoutTests/animations/interpolation/clip-interpolation.html File LayoutTests/animations/interpolation/clip-interpolation.html (right): https://codereview.chromium.org/22799020/diff/40001/LayoutTests/animations/interpolation/clip-interpolation.html#newcode54 LayoutTests/animations/interpolation/clip-interpolation.html:54: }); On 2013/08/28 03:44:23, Steve Block wrote: > It ...
7 years, 3 months ago (2013-08-28 08:21:21 UTC) #9
Timothy Loh
lgtm https://codereview.chromium.org/22799020/diff/69001/LayoutTests/animations/interpolation/clip-interpolation.html File LayoutTests/animations/interpolation/clip-interpolation.html (right): https://codereview.chromium.org/22799020/diff/69001/LayoutTests/animations/interpolation/clip-interpolation.html#newcode74 LayoutTests/animations/interpolation/clip-interpolation.html:74: {at: -1, is: 'rect(0px, 0px, 0px, 0px)'}, I ...
7 years, 3 months ago (2013-08-28 08:26:55 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dstockwell@chromium.org/22799020/69001
7 years, 3 months ago (2013-08-28 08:28:01 UTC) #11
dstockwell
https://codereview.chromium.org/22799020/diff/69001/LayoutTests/animations/interpolation/clip-interpolation.html File LayoutTests/animations/interpolation/clip-interpolation.html (right): https://codereview.chromium.org/22799020/diff/69001/LayoutTests/animations/interpolation/clip-interpolation.html#newcode74 LayoutTests/animations/interpolation/clip-interpolation.html:74: {at: -1, is: 'rect(0px, 0px, 0px, 0px)'}, On 2013/08/28 ...
7 years, 3 months ago (2013-08-28 11:35:29 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dstockwell@chromium.org/22799020/94001
7 years, 3 months ago (2013-08-28 11:35:42 UTC) #13
commit-bot: I haz the power
Failed to trigger a try job on win_layout HTTP Error 400: Bad Request
7 years, 3 months ago (2013-08-28 11:38:53 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dstockwell@chromium.org/22799020/57001
7 years, 3 months ago (2013-08-28 11:39:20 UTC) #15
commit-bot: I haz the power
7 years, 3 months ago (2013-08-28 13:00:08 UTC) #16
Message was sent while issue was closed.
Change committed as 156846

Powered by Google App Engine
This is Rietveld 408576698