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

Issue 1402143004: Preserve running CSS Animations across changes to animation styles according to same name index (Closed)

Created:
5 years, 2 months ago by alancutter (OOO until 2018)
Modified:
5 years, 2 months ago
Reviewers:
dstockwell
CC:
darktears, blink-reviews, blink-reviews-animation_chromium.org, chromium-reviews, Eric Willigers, rjwright, shans
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Preserve running CSS Animations across changes to animation styles according to same name index We currently only keep track of the last animation that used a given @keyframes name. If multiple animations use the same @keyframes rule we fail to update their timing input correctly as animation styles are updated. This change makes us track animation-name references to running animations based on name and name index (nth occurrence of name) rather than just name. This behaviour does not conform to any spec text as the specification does not dictate what to do in this scenario: "Need to specify better handling of dynamic changes of animation-name" https://drafts.csswg.org/css-animations-1/#other-open-issues The behaviour introduced in this patch is arbitrary though better than the existing behaviour of ignoring running animations and crashing debug on timing updates. BUG=487092 Committed: https://crrev.com/1737f9e86e74990aad0e9693ebf247c8ffbb86f9 Cr-Commit-Position: refs/heads/master@{#354457}

Patch Set 1 #

Patch Set 2 : Added test #

Total comments: 2

Patch Set 3 : Review change #

Patch Set 4 : Semilcelon #

Unified diffs Side-by-side diffs Delta from patch set Stats (+245 lines, -84 lines) Patch
M third_party/WebKit/LayoutTests/animations/multiple-same-animations-asan-crash.html View 1 chunk +0 lines, -2 lines 0 comments Download
A third_party/WebKit/LayoutTests/animations/multiple-same-name-css-animations.html View 1 1 chunk +139 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/animation/css/CSSAnimationUpdate.h View 9 chunks +24 lines, -22 lines 0 comments Download
M third_party/WebKit/Source/core/animation/css/CSSAnimations.h View 5 chunks +7 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp View 1 2 3 10 chunks +75 lines, -57 lines 0 comments Download

Messages

Total messages: 18 (7 generated)
alancutter (OOO until 2018)
5 years, 2 months ago (2015-10-16 00:44:23 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1402143004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1402143004/20001
5 years, 2 months ago (2015-10-16 00:49:35 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-16 01:51:15 UTC) #6
dstockwell
https://codereview.chromium.org/1402143004/diff/20001/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp File third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp (right): https://codereview.chromium.org/1402143004/diff/20001/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp#newcode293 third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp:293: nameIndex += (nameList[--j] == name); This code is a ...
5 years, 2 months ago (2015-10-16 01:51:37 UTC) #7
alancutter (OOO until 2018)
https://codereview.chromium.org/1402143004/diff/20001/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp File third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp (right): https://codereview.chromium.org/1402143004/diff/20001/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp#newcode293 third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp:293: nameIndex += (nameList[--j] == name); On 2015/10/16 at 01:51:37, ...
5 years, 2 months ago (2015-10-16 01:56:19 UTC) #8
dstockwell
lgtm
5 years, 2 months ago (2015-10-16 02:26:43 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1402143004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1402143004/40001
5 years, 2 months ago (2015-10-16 02:34:39 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/94662)
5 years, 2 months ago (2015-10-16 02:43: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/1402143004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1402143004/60001
5 years, 2 months ago (2015-10-16 04:04:40 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 2 months ago (2015-10-16 05:58:35 UTC) #17
commit-bot: I haz the power
5 years, 2 months ago (2015-10-16 05:59:34 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1737f9e86e74990aad0e9693ebf247c8ffbb86f9
Cr-Commit-Position: refs/heads/master@{#354457}

Powered by Google App Engine
This is Rietveld 408576698