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

Issue 948583003: Use StringKeyframes to make CSS Animations responsive to style changes (Closed)

Created:
5 years, 10 months ago by alancutter (OOO until 2018)
Modified:
5 years, 9 months ago
Reviewers:
dstockwell, Timothy Loh
CC:
darktears, blink-reviews, blink-reviews-animation_chromium.org, dstockwell, Eric Willigers, Mike Lawther (Google), rjwright, shans, Steve Block, Timothy Loh
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Use StringKeyframes to make CSS Animations responsive to style changes This patch switches from AnimatableValueKeyframe over to StringKeyframe in CSS Animations. The only place that still uses AnimatableValueKeyframe is transitions. When an animated property is absent in the 0% or 100% keyframe, a neutral keyframe is created which takes the value of the computed style. When the computed style changes, the spec requires that the neutral keyframe is updated accordingly to match the new style. This patch also introduces behaviour changes for interpolating SVG stroke-width, opacity and shape-image-transform. The new behaviours of these interpolations in CSS Animations match that of Web Animations. When there is a non-animation style change, neutral keyframes are updated. Firefox handles this correctly, but IE11 doesn't. BUG=361948 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192071

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Rebase #

Patch Set 4 : #

Patch Set 5 : Windows >: #

Patch Set 6 : New text expectatiotns #

Patch Set 7 : Split baseStyle out #

Patch Set 8 : Split baseStyle out #

Total comments: 2

Patch Set 9 : Comment #

Patch Set 10 : Fix crash #

Total comments: 1

Patch Set 11 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+251 lines, -69 lines) Patch
M LayoutTests/animations/interpolation/border-image-source-interpolation-expected.txt View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M LayoutTests/animations/interpolation/list-style-image-interpolation-expected.txt View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M LayoutTests/animations/interpolation/opacity-interpolation-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/animations/interpolation/shape-image-threshold-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/animations/interpolation/svg-stroke-dasharray-interpolation-expected.txt View 1 2 3 5 chunks +23 lines, -23 lines 0 comments Download
M LayoutTests/animations/interpolation/webkit-mask-box-image-source-interpolation-expected.txt View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
A LayoutTests/animations/responsive-neutral-keyframes.html View 1 1 chunk +101 lines, -0 lines 0 comments Download
A ManualTests/animation/compositor-neutral-keyframes.html View 1 1 chunk +52 lines, -0 lines 0 comments Download
M Source/core/animation/DeferredLegacyStyleInterpolation.cpp View 1 2 3 4 5 6 7 8 1 chunk +13 lines, -4 lines 0 comments Download
M Source/core/animation/KeyframeEffectModel.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M Source/core/animation/KeyframeEffectModel.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/animation/css/CSSAnimations.cpp View 1 2 3 4 5 6 7 8 9 8 chunks +43 lines, -23 lines 0 comments Download

Messages

Total messages: 22 (10 generated)
alancutter (OOO until 2018)
This is a rebase of Darren's patch to make length and other values responsive in ...
5 years, 9 months ago (2015-03-11 12:49:16 UTC) #2
alancutter (OOO until 2018)
The base LayoutStyle change has been moved to https://codereview.chromium.org/999963003 to make this patch simpler.
5 years, 9 months ago (2015-03-12 09:24:16 UTC) #3
dstockwell
lgtm
5 years, 9 months ago (2015-03-16 00:18:45 UTC) #4
Timothy Loh
lgtm https://codereview.chromium.org/948583003/diff/140001/Source/core/animation/DeferredLegacyStyleInterpolation.cpp File Source/core/animation/DeferredLegacyStyleInterpolation.cpp (right): https://codereview.chromium.org/948583003/diff/140001/Source/core/animation/DeferredLegacyStyleInterpolation.cpp#newcode28 Source/core/animation/DeferredLegacyStyleInterpolation.cpp:28: // Snapshot neutral values first because non-neutral values ...
5 years, 9 months ago (2015-03-16 00:49:42 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/948583003/140001
5 years, 9 months ago (2015-03-16 03:43:23 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/948583003/160001
5 years, 9 months ago (2015-03-16 03:47:43 UTC) #10
alancutter (OOO until 2018)
https://codereview.chromium.org/948583003/diff/140001/Source/core/animation/DeferredLegacyStyleInterpolation.cpp File Source/core/animation/DeferredLegacyStyleInterpolation.cpp (right): https://codereview.chromium.org/948583003/diff/140001/Source/core/animation/DeferredLegacyStyleInterpolation.cpp#newcode28 Source/core/animation/DeferredLegacyStyleInterpolation.cpp:28: // Snapshot neutral values first because non-neutral values will ...
5 years, 9 months ago (2015-03-17 00:12:34 UTC) #12
alancutter (OOO until 2018)
https://codereview.chromium.org/948583003/diff/180001/Source/core/animation/css/CSSAnimations.cpp File Source/core/animation/css/CSSAnimations.cpp (right): https://codereview.chromium.org/948583003/diff/180001/Source/core/animation/css/CSSAnimations.cpp#newcode378 Source/core/animation/css/CSSAnimations.cpp:378: This code has changed to fix a crash and ...
5 years, 9 months ago (2015-03-17 00:40:34 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/948583003/180001
5 years, 9 months ago (2015-03-18 00:20:42 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/47916)
5 years, 9 months ago (2015-03-18 00:35:36 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/948583003/200001
5 years, 9 months ago (2015-03-18 06:42:17 UTC) #21
commit-bot: I haz the power
5 years, 9 months ago (2015-03-18 08:27:17 UTC) #22
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=192071

Powered by Google App Engine
This is Rietveld 408576698