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

Issue 1196913005: Implement animations for Independent CSS Transform Properties (Closed)

Created:
5 years, 6 months ago by soonm
Modified:
5 years, 5 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-animation_chromium.org, blink-reviews-css, blink-reviews-style_chromium.org, dglazkov+blink, rjwright, rwlbuis, shans
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Implement animations for Independent CSS Transform Properties Add AnimatableValues for Translate, Rotate and Scale using AnimatableTransform and Interpolation for Translate and Scale. This patch does not attempt to put their animations on the compositor. However, extra code still needs to be added into KeyframeEffect so that compositor animation on CSSPropertyTransform is cancelled when the independent properties are added. Design Doc : https://docs.google.com/document/d/1Rbwj36VVhGuI7C3PQGuoEqJ2U9nAfzKXjwBV2N41JlQ/edit?usp=sharing Link to Intent to implement: https://groups.google.com/a/chromium.org/d/msg/blink-dev/-GfE73tlLX8/hv7Qitys6j8J Link to w3c specifications: http://dev.w3.org/csswg/css-transforms-2/ BUG=496550 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197959

Patch Set 1 #

Total comments: 8

Patch Set 2 : Remove Compositor Animations and add tests for inherit and initial #

Total comments: 18

Patch Set 3 : #

Total comments: 7

Patch Set 4 : #

Total comments: 6

Patch Set 5 : Fix static cast predicates #

Total comments: 3

Patch Set 6 : Cleanup #

Patch Set 7 : Add test for responsive font and rebase master #

Patch Set 8 : New blink checkout #

Patch Set 9 : Fix rotate-interpolation test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+647 lines, -34 lines) Patch
A LayoutTests/animations/interpolation/rotate-interpolation.html View 1 2 3 4 5 6 7 8 1 chunk +179 lines, -0 lines 0 comments Download
A LayoutTests/animations/interpolation/scale-interpolation.html View 1 2 1 chunk +165 lines, -0 lines 0 comments Download
A LayoutTests/animations/interpolation/translate-interpolation.html View 1 2 1 chunk +178 lines, -0 lines 0 comments Download
A + LayoutTests/web-animations-api/animations-responsive-translate.html View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/animation/DoubleStyleInterpolation.h View 1 2 3 4 3 chunks +6 lines, -1 line 0 comments Download
M Source/core/animation/DoubleStyleInterpolation.cpp View 1 2 3 4 2 chunks +28 lines, -19 lines 0 comments Download
M Source/core/animation/KeyframeEffect.cpp View 1 2 2 chunks +7 lines, -3 lines 0 comments Download
M Source/core/animation/StringKeyframe.cpp View 1 2 3 4 5 6 1 chunk +20 lines, -0 lines 0 comments Download
M Source/core/animation/css/CSSAnimatableValueFactory.cpp View 1 2 2 chunks +13 lines, -0 lines 0 comments Download
M Source/core/animation/css/CSSPropertyEquality.cpp View 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/css/CSSProperties.in View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/css/resolver/AnimatedStyleBuilder.cpp View 1 2 3 2 chunks +20 lines, -0 lines 0 comments Download
M Source/platform/transforms/RotateTransformOperation.h View 1 2 3 4 3 chunks +5 lines, -1 line 0 comments Download
M Source/platform/transforms/ScaleTransformOperation.h View 1 2 3 4 3 chunks +6 lines, -3 lines 0 comments Download
M Source/platform/transforms/TransformOperation.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M Source/platform/transforms/TranslateTransformOperation.h View 1 2 3 4 3 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 36 (12 generated)
soonm
5 years, 6 months ago (2015-06-23 05:05:06 UTC) #3
Eric Willigers
As translate can be specified in units like em, rem, etc., that can change during ...
5 years, 6 months ago (2015-06-23 06:27:53 UTC) #4
Eric Willigers
https://codereview.chromium.org/1196913005/diff/1/Source/core/animation/DoubleStyleInterpolation.cpp File Source/core/animation/DoubleStyleInterpolation.cpp (right): https://codereview.chromium.org/1196913005/diff/1/Source/core/animation/DoubleStyleInterpolation.cpp#newcode88 Source/core/animation/DoubleStyleInterpolation.cpp:88: PassOwnPtrWillBeRawPtr<InterpolableValue> DoubleStyleInterpolation::toInterpolableValue(const CSSValue& value, CSSPropertyID property) I am not ...
5 years, 6 months ago (2015-06-23 06:50:48 UTC) #5
soonm
https://codereview.chromium.org/1196913005/diff/1/Source/core/animation/DoubleStyleInterpolation.cpp File Source/core/animation/DoubleStyleInterpolation.cpp (right): https://codereview.chromium.org/1196913005/diff/1/Source/core/animation/DoubleStyleInterpolation.cpp#newcode88 Source/core/animation/DoubleStyleInterpolation.cpp:88: PassOwnPtrWillBeRawPtr<InterpolableValue> DoubleStyleInterpolation::toInterpolableValue(const CSSValue& value, CSSPropertyID property) On 2015/06/23 at ...
5 years, 6 months ago (2015-06-24 00:26:45 UTC) #6
Timothy Loh
https://codereview.chromium.org/1196913005/diff/20001/Source/core/animation/DoubleStyleInterpolation.cpp File Source/core/animation/DoubleStyleInterpolation.cpp (right): https://codereview.chromium.org/1196913005/diff/20001/Source/core/animation/DoubleStyleInterpolation.cpp#newcode37 Source/core/animation/DoubleStyleInterpolation.cpp:37: value = clampTo<float>(value, 0, 1); Probably looks better if ...
5 years, 6 months ago (2015-06-24 01:00:28 UTC) #7
alancutter (OOO until 2018)
https://codereview.chromium.org/1196913005/diff/20001/LayoutTests/animations/interpolation/rotate-interpolation.html File LayoutTests/animations/interpolation/rotate-interpolation.html (right): https://codereview.chromium.org/1196913005/diff/20001/LayoutTests/animations/interpolation/rotate-interpolation.html#newcode104 LayoutTests/animations/interpolation/rotate-interpolation.html:104: to: '0deg' Trailing comma for consistency. https://codereview.chromium.org/1196913005/diff/20001/Source/core/animation/DoubleStyleInterpolation.cpp File Source/core/animation/DoubleStyleInterpolation.cpp ...
5 years, 6 months ago (2015-06-24 01:17:10 UTC) #8
soonm
https://codereview.chromium.org/1196913005/diff/20001/LayoutTests/animations/interpolation/rotate-interpolation.html File LayoutTests/animations/interpolation/rotate-interpolation.html (right): https://codereview.chromium.org/1196913005/diff/20001/LayoutTests/animations/interpolation/rotate-interpolation.html#newcode104 LayoutTests/animations/interpolation/rotate-interpolation.html:104: to: '0deg' On 2015/06/24 at 01:17:09, alancutter wrote: > ...
5 years, 6 months ago (2015-06-24 02:53:20 UTC) #9
Eric Willigers
https://codereview.chromium.org/1196913005/diff/40001/Source/core/animation/StringKeyframe.cpp File Source/core/animation/StringKeyframe.cpp (right): https://codereview.chromium.org/1196913005/diff/40001/Source/core/animation/StringKeyframe.cpp#newcode410 Source/core/animation/StringKeyframe.cpp:410: fallBackToLegacy = true; Do we need this line? Same ...
5 years, 6 months ago (2015-06-24 03:43:08 UTC) #10
soonm
https://codereview.chromium.org/1196913005/diff/40001/Source/core/animation/StringKeyframe.cpp File Source/core/animation/StringKeyframe.cpp (right): https://codereview.chromium.org/1196913005/diff/40001/Source/core/animation/StringKeyframe.cpp#newcode410 Source/core/animation/StringKeyframe.cpp:410: fallBackToLegacy = true; On 2015/06/24 at 03:43:08, Eric Willigers ...
5 years, 6 months ago (2015-06-24 05:00:45 UTC) #11
alancutter (OOO until 2018)
https://codereview.chromium.org/1196913005/diff/40001/Source/core/animation/StringKeyframe.cpp File Source/core/animation/StringKeyframe.cpp (right): https://codereview.chromium.org/1196913005/diff/40001/Source/core/animation/StringKeyframe.cpp#newcode410 Source/core/animation/StringKeyframe.cpp:410: fallBackToLegacy = true; On 2015/06/24 at 05:00:44, soonm wrote: ...
5 years, 6 months ago (2015-06-25 01:33:10 UTC) #12
soonm
https://codereview.chromium.org/1196913005/diff/40001/Source/core/animation/StringKeyframe.cpp File Source/core/animation/StringKeyframe.cpp (right): https://codereview.chromium.org/1196913005/diff/40001/Source/core/animation/StringKeyframe.cpp#newcode410 Source/core/animation/StringKeyframe.cpp:410: fallBackToLegacy = true; On 2015/06/25 at 01:33:09, alancutter wrote: ...
5 years, 6 months ago (2015-06-26 02:52:34 UTC) #13
alancutter (OOO until 2018)
lgtm with nits. https://codereview.chromium.org/1196913005/diff/80001/Source/core/animation/StringKeyframe.cpp File Source/core/animation/StringKeyframe.cpp (right): https://codereview.chromium.org/1196913005/diff/80001/Source/core/animation/StringKeyframe.cpp#newcode410 Source/core/animation/StringKeyframe.cpp:410: // TODO: Legacy mode is used ...
5 years, 6 months ago (2015-06-26 02:56:16 UTC) #14
soonm
https://codereview.chromium.org/1196913005/diff/80001/Source/platform/transforms/TransformOperation.h File Source/platform/transforms/TransformOperation.h (right): https://codereview.chromium.org/1196913005/diff/80001/Source/platform/transforms/TransformOperation.h#newcode84 Source/platform/transforms/TransformOperation.h:84: On 2015/06/26 at 02:56:15, alancutter wrote: > No need ...
5 years, 6 months ago (2015-06-26 03:02:12 UTC) #15
Eric Willigers
lgtm
5 years, 5 months ago (2015-06-29 01:15:08 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1196913005/120001
5 years, 5 months ago (2015-06-29 01:17:36 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1196913005/140001
5 years, 5 months ago (2015-06-29 01:32:47 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/36541)
5 years, 5 months ago (2015-06-29 01:38:06 UTC) #25
Timothy Loh
On 2015/06/29 01:38:06, commit-bot: I haz the power wrote: > Try jobs failed on following ...
5 years, 5 months ago (2015-06-29 01:49:17 UTC) #26
Noel Gordon
platform/ lgtm.
5 years, 5 months ago (2015-06-29 01:58:50 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1196913005/140001
5 years, 5 months ago (2015-06-29 02:00:11 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/68843)
5 years, 5 months ago (2015-06-29 02:29:34 UTC) #31
Noel Gordon
animations/interpolation/rotate-interpolation.html is failing on the trys.
5 years, 5 months ago (2015-06-29 02:55:23 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1196913005/160001
5 years, 5 months ago (2015-06-29 03:59:02 UTC) #35
commit-bot: I haz the power
5 years, 5 months ago (2015-06-29 05:05:40 UTC) #36
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197959

Powered by Google App Engine
This is Rietveld 408576698