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

Issue 215883005: Web Animations: Introduce String based KeyframeEffectModel (Closed)

Created:
6 years, 9 months ago by shans
Modified:
6 years, 8 months ago
CC:
blink-reviews, ed+blinkwatch_opera.com, shans, rjwright, alancutter (OOO until 2018), Mike Lawther (Google), rwlbuis, rune+blink, dglazkov+blink, dstockwell, Timothy Loh, apavlov+blink_chromium.org, darktears, Steve Block, dino_apple.com, Eric Willigers
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Web Animations: Introduce String based KeyframeEffectModel Note: This is a rework of issue 212023004 This patch refactors KeyframeEffectModel to support different types of keyframe values. The common keyframe logic is retained in KeyframeEffectModelBase to be inherited by the keyframe type specialisations. KeyframeEffectModel is then templated on Keyframe type, with a hierarchy of Keyframes including StringKeyframe and AnimatableValueKeyframe being introduced. String based keyframes are being introduced to properly support the JS API for Web Animations element.animate(). Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170690

Patch Set 1 #

Patch Set 2 : #

Total comments: 18

Patch Set 3 : #

Total comments: 10

Patch Set 4 : #

Patch Set 5 : #

Total comments: 6

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+720 lines, -461 lines) Patch
M Source/core/animation/AnimatableValue.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A Source/core/animation/AnimatableValueKeyframe.h View 1 2 3 4 5 1 chunk +68 lines, -0 lines 0 comments Download
A Source/core/animation/AnimatableValueKeyframe.cpp View 1 2 3 4 5 1 chunk +68 lines, -0 lines 0 comments Download
M Source/core/animation/AnimationStackTest.cpp View 1 2 3 4 5 2 chunks +5 lines, -5 lines 0 comments Download
M Source/core/animation/AnimationTest.cpp View 1 1 chunk +3 lines, -4 lines 0 comments Download
M Source/core/animation/CompositorAnimations.cpp View 1 2 3 4 5 9 chunks +15 lines, -13 lines 0 comments Download
M Source/core/animation/CompositorAnimationsImpl.h View 1 2 chunks +2 lines, -4 lines 0 comments Download
M Source/core/animation/CompositorAnimationsTest.cpp View 1 2 3 4 5 23 chunks +62 lines, -62 lines 0 comments Download
M Source/core/animation/DocumentTimelineTest.cpp View 1 2 3 4 5 4 chunks +9 lines, -9 lines 0 comments Download
M Source/core/animation/EffectInput.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/animation/Interpolation.h View 1 2 3 4 5 2 chunks +1 line, -2 lines 0 comments Download
M Source/core/animation/Interpolation.cpp View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
A Source/core/animation/Keyframe.h View 1 2 3 4 1 chunk +94 lines, -0 lines 0 comments Download
M Source/core/animation/KeyframeEffectModel.h View 1 2 3 3 chunks +75 lines, -96 lines 0 comments Download
M Source/core/animation/KeyframeEffectModel.cpp View 1 2 3 9 chunks +28 lines, -108 lines 0 comments Download
M Source/core/animation/KeyframeEffectModelTest.cpp View 1 18 chunks +122 lines, -124 lines 0 comments Download
A Source/core/animation/StringKeyframe.h View 1 2 3 4 5 1 chunk +63 lines, -0 lines 0 comments Download
A Source/core/animation/StringKeyframe.cpp View 1 2 3 4 5 6 1 chunk +68 lines, -0 lines 0 comments Download
M Source/core/animation/css/CSSAnimations.cpp View 1 2 3 4 5 7 chunks +21 lines, -21 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 4 5 6 3 chunks +6 lines, -2 lines 0 comments Download
M Source/core/css/resolver/StyleResolver.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/resolver/StyleResolver.cpp View 1 2 3 4 5 3 chunks +3 lines, -4 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
shans
Reckon this is ready for a review now.
6 years, 8 months ago (2014-03-31 10:50:28 UTC) #1
alancutter (OOO until 2018)
Some quick comments, review ongoing. https://codereview.chromium.org/215883005/diff/20001/Source/core/animation/Keyframe.h File Source/core/animation/Keyframe.h (right): https://codereview.chromium.org/215883005/diff/20001/Source/core/animation/Keyframe.h#newcode57 Source/core/animation/Keyframe.h:57: RefPtrWillBeMember<AnimatableValue> m_value; Should this ...
6 years, 8 months ago (2014-04-01 01:09:40 UTC) #2
alancutter (OOO until 2018)
https://codereview.chromium.org/215883005/diff/20001/Source/core/animation/Interpolation.h File Source/core/animation/Interpolation.h (right): https://codereview.chromium.org/215883005/diff/20001/Source/core/animation/Interpolation.h#newcode72 Source/core/animation/Interpolation.h:72: } Adding currentValue() to StyleInterpolation is likely a remnant ...
6 years, 8 months ago (2014-04-01 03:12:48 UTC) #3
shans
https://codereview.chromium.org/215883005/diff/20001/Source/core/animation/Interpolation.h File Source/core/animation/Interpolation.h (right): https://codereview.chromium.org/215883005/diff/20001/Source/core/animation/Interpolation.h#newcode72 Source/core/animation/Interpolation.h:72: } On 2014/04/01 03:12:48, alancutter wrote: > Adding currentValue() ...
6 years, 8 months ago (2014-04-01 04:01:26 UTC) #4
shans
https://codereview.chromium.org/215883005/diff/20001/Source/core/animation/Interpolation.h File Source/core/animation/Interpolation.h (right): https://codereview.chromium.org/215883005/diff/20001/Source/core/animation/Interpolation.h#newcode72 Source/core/animation/Interpolation.h:72: } On 2014/04/01 03:12:48, alancutter wrote: > Adding currentValue() ...
6 years, 8 months ago (2014-04-01 04:01:26 UTC) #5
alancutter (OOO until 2018)
lgtm
6 years, 8 months ago (2014-04-01 06:15:58 UTC) #6
dstockwell
lgtm https://codereview.chromium.org/215883005/diff/40001/Source/core/animation/AnimatableValueKeyframe.h File Source/core/animation/AnimatableValueKeyframe.h (right): https://codereview.chromium.org/215883005/diff/40001/Source/core/animation/AnimatableValueKeyframe.h#newcode28 Source/core/animation/AnimatableValueKeyframe.h:28: // This is not used in time-critical code, ...
6 years, 8 months ago (2014-04-01 06:38:12 UTC) #7
shans
https://codereview.chromium.org/215883005/diff/40001/Source/core/animation/AnimatableValueKeyframe.h File Source/core/animation/AnimatableValueKeyframe.h (right): https://codereview.chromium.org/215883005/diff/40001/Source/core/animation/AnimatableValueKeyframe.h#newcode28 Source/core/animation/AnimatableValueKeyframe.h:28: // This is not used in time-critical code, so ...
6 years, 8 months ago (2014-04-01 12:05:32 UTC) #8
shans
6 years, 8 months ago (2014-04-01 12:05:54 UTC) #9
esprehn
LGTM, it does seem like a ton of inline functions. I'd suggest moving most of ...
6 years, 8 months ago (2014-04-01 22:53:33 UTC) #10
alancutter (OOO until 2018)
https://codereview.chromium.org/215883005/diff/80001/Source/core/core.gypi File Source/core/core.gypi (right): https://codereview.chromium.org/215883005/diff/80001/Source/core/core.gypi#newcode610 Source/core/core.gypi:610: 'animation/StringKeyframe.cp', AnimatableValueKeyframe.cpp and StringKeyframe.cp don't exist and should be ...
6 years, 8 months ago (2014-04-02 01:49:18 UTC) #11
shans
https://codereview.chromium.org/215883005/diff/80001/Source/core/animation/AnimatableValueKeyframe.h File Source/core/animation/AnimatableValueKeyframe.h (right): https://codereview.chromium.org/215883005/diff/80001/Source/core/animation/AnimatableValueKeyframe.h#newcode56 Source/core/animation/AnimatableValueKeyframe.h:56: AnimatableValueKeyframe() On 2014/04/01 22:53:33, esprehn wrote: > Why not ...
6 years, 8 months ago (2014-04-02 11:54:45 UTC) #12
shans
The CQ bit was checked by shans@chromium.org
6 years, 8 months ago (2014-04-02 11:54:59 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shans@chromium.org/215883005/100001
6 years, 8 months ago (2014-04-02 11:55:05 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-02 12:33:08 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on mac_blink_rel
6 years, 8 months ago (2014-04-02 12:33:08 UTC) #16
shans
The CQ bit was checked by shans@chromium.org
6 years, 8 months ago (2014-04-02 12:40:41 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shans@chromium.org/215883005/100001
6 years, 8 months ago (2014-04-02 12:40:42 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-02 13:08:04 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
6 years, 8 months ago (2014-04-02 13:08:05 UTC) #20
shans
The CQ bit was checked by shans@chromium.org
6 years, 8 months ago (2014-04-02 13:34:10 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shans@chromium.org/215883005/100001
6 years, 8 months ago (2014-04-02 13:34:17 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-02 14:06:45 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on mac_blink_rel
6 years, 8 months ago (2014-04-02 14:06:46 UTC) #24
shans
The CQ bit was checked by shans@chromium.org
6 years, 8 months ago (2014-04-02 18:35:41 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shans@chromium.org/215883005/100001
6 years, 8 months ago (2014-04-02 18:35:51 UTC) #26
commit-bot: I haz the power
6 years, 8 months ago (2014-04-02 19:44:41 UTC) #27
Message was sent while issue was closed.
Change committed as 170690

Powered by Google App Engine
This is Rietveld 408576698