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

Issue 182063005: Web Animations API: Refactor IDL input conversion out of Animation (Closed)

Created:
6 years, 10 months ago by alancutter (OOO until 2018)
Modified:
6 years, 9 months ago
CC:
blink-reviews, shans, Mike Lawther (Google), darktears, Steve Block, dino_apple.com, Eric Willigers
Visibility:
Public.

Description

Web Animations API: Refactor IDL input conversion out of Animation This change moves effect and timing conversion logic out of Animation and into EffectInput and TimingInput respectively. This refactor includes a minor change in behaviour: Animations created on elements without an active document renderer will no longer return null, instead the animation's effect will be null. This behaviour still avoids calls to the CSS parser and style resolver if the check fails. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168575

Patch Set 1 #

Patch Set 2 : Fix up includes #

Total comments: 5

Patch Set 3 : Move timing input conversion from Animation into Timing #

Total comments: 22

Patch Set 4 : Rebased #

Patch Set 5 : Review changes #

Patch Set 6 : Rebased #

Patch Set 7 : Remove templates #

Total comments: 14

Patch Set 8 : Review changes #

Total comments: 2

Patch Set 9 : Review changes #

Patch Set 10 : Rebased #

Patch Set 11 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+431 lines, -580 lines) Patch
M Source/core/animation/Animation.h View 1 2 3 4 5 6 7 4 chunks +8 lines, -8 lines 0 comments Download
M Source/core/animation/Animation.cpp View 1 2 3 4 5 6 7 2 chunks +15 lines, -253 lines 0 comments Download
M Source/core/animation/AnimationTest.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +8 lines, -12 lines 0 comments Download
D Source/core/animation/AnimationTimingInputTest.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -191 lines 0 comments Download
A Source/core/animation/EffectInput.h View 1 2 3 4 5 6 7 1 chunk +24 lines, -0 lines 0 comments Download
A Source/core/animation/EffectInput.cpp View 1 2 3 4 5 6 7 8 1 chunk +110 lines, -0 lines 0 comments Download
M Source/core/animation/ElementAnimation.h View 1 2 3 4 5 6 7 8 1 chunk +44 lines, -6 lines 0 comments Download
D Source/core/animation/ElementAnimation.cpp View 1 chunk +0 lines, -73 lines 0 comments Download
M Source/core/animation/TimedItemTiming.cpp View 1 2 3 4 3 chunks +9 lines, -9 lines 0 comments Download
A Source/core/animation/TimingInput.h View 1 2 3 4 5 6 7 1 chunk +32 lines, -0 lines 0 comments Download
A Source/core/animation/TimingInput.cpp View 1 2 3 4 7 1 chunk +160 lines, -0 lines 0 comments Download
A + Source/core/animation/TimingInputTest.cpp View 1 2 3 4 5 6 7 8 9 10 12 chunks +16 lines, -26 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 4 5 6 7 8 9 10 4 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 41 (0 generated)
alancutter (OOO until 2018)
6 years, 10 months ago (2014-02-27 06:11:49 UTC) #1
dstockwell
https://codereview.chromium.org/182063005/diff/20001/Source/core/animation/ElementAnimation.h File Source/core/animation/ElementAnimation.h (right): https://codereview.chromium.org/182063005/diff/20001/Source/core/animation/ElementAnimation.h#newcode44 Source/core/animation/ElementAnimation.h:44: static Animation* animate(Element& element, E effect, T timing = ...
6 years, 9 months ago (2014-02-27 09:49:36 UTC) #2
shans
lgtm with Doug's suggested change. Would be worth syncing up with Tim, who has a ...
6 years, 9 months ago (2014-02-27 20:39:33 UTC) #3
alancutter (OOO until 2018)
These review changes move a bit of code around and necessitate a minor change in ...
6 years, 9 months ago (2014-02-28 00:40:22 UTC) #4
Timothy Loh
lgtm https://codereview.chromium.org/182063005/diff/40001/Source/core/animation/Timing.cpp File Source/core/animation/Timing.cpp (right): https://codereview.chromium.org/182063005/diff/40001/Source/core/animation/Timing.cpp#newcode14 Source/core/animation/Timing.cpp:14: Extra blank line :< https://codereview.chromium.org/182063005/diff/40001/Source/core/animation/Timing.cpp#newcode48 Source/core/animation/Timing.cpp:48: if (!std::isnan(iterationStart) ...
6 years, 9 months ago (2014-02-28 00:55:24 UTC) #5
dstockwell
https://codereview.chromium.org/182063005/diff/20001/Source/core/animation/ElementAnimation.h File Source/core/animation/ElementAnimation.h (right): https://codereview.chromium.org/182063005/diff/20001/Source/core/animation/ElementAnimation.h#newcode44 Source/core/animation/ElementAnimation.h:44: static Animation* animate(Element& element, E effect, T timing = ...
6 years, 9 months ago (2014-02-28 00:56:36 UTC) #6
esprehn
I think I'd rather see the big stack of overloads to be honest, this doesn't ...
6 years, 9 months ago (2014-02-28 00:57:15 UTC) #7
Timothy Loh
On 2014/02/28 00:57:15, esprehn wrote: > I think I'd rather see the big stack of ...
6 years, 9 months ago (2014-02-28 00:59:02 UTC) #8
esprehn
On 2014/02/28 00:59:02, Timothy Loh wrote: > On 2014/02/28 00:57:15, esprehn wrote: > > I ...
6 years, 9 months ago (2014-02-28 01:02:56 UTC) #9
dstockwell
On 2014/02/28 00:59:02, Timothy Loh wrote: > On 2014/02/28 00:57:15, esprehn wrote: > > I ...
6 years, 9 months ago (2014-02-28 01:04:26 UTC) #10
dstockwell
On 2014/02/28 01:04:26, dstockwell wrote: > On 2014/02/28 00:59:02, Timothy Loh wrote: > > On ...
6 years, 9 months ago (2014-02-28 01:06:45 UTC) #11
alancutter (OOO until 2018)
There will be four different types for the effect input (AnimationEffect, EffectCallback, Vector<Dictionary> and Dictionary) ...
6 years, 9 months ago (2014-02-28 01:49:08 UTC) #12
alancutter (OOO until 2018)
PTAL. https://codereview.chromium.org/182063005/diff/20001/Source/core/animation/ElementAnimation.h File Source/core/animation/ElementAnimation.h (right): https://codereview.chromium.org/182063005/diff/20001/Source/core/animation/ElementAnimation.h#newcode44 Source/core/animation/ElementAnimation.h:44: static Animation* animate(Element& element, E effect, T timing ...
6 years, 9 months ago (2014-03-03 05:09:45 UTC) #13
rjwright
lgtm. I can't comment on whether templates are the right way to go, but this ...
6 years, 9 months ago (2014-03-03 06:51:36 UTC) #14
esprehn
On 2014/03/03 06:51:36, rjwright wrote: > lgtm. > > I can't comment on whether templates ...
6 years, 9 months ago (2014-03-03 07:35:44 UTC) #15
rjwright
On 2014/03/03 07:35:44, esprehn wrote: > On 2014/03/03 06:51:36, rjwright wrote: > > lgtm. > ...
6 years, 9 months ago (2014-03-03 23:08:00 UTC) #16
alancutter (OOO until 2018)
On 2014/03/03 07:35:44, esprehn wrote: > I'd really rather you just listed out all the ...
6 years, 9 months ago (2014-03-03 23:13:33 UTC) #17
rjwright1
I'm not passionately against listing the overloads as long as the duplicate methods are compact. ...
6 years, 9 months ago (2014-03-03 23:26:51 UTC) #18
alancutter (OOO until 2018)
Templates removed from patch (previously named "Make the Animation constructor templated"). PTAL.
6 years, 9 months ago (2014-03-04 00:39:44 UTC) #19
esprehn
You definitely don't want to be passing a Vector<Dictionary> by value all the time. https://codereview.chromium.org/182063005/diff/110001/Source/core/animation/EffectInput.cpp ...
6 years, 9 months ago (2014-03-04 00:59:41 UTC) #20
alancutter (OOO until 2018)
https://codereview.chromium.org/182063005/diff/110001/Source/core/animation/EffectInput.cpp File Source/core/animation/EffectInput.cpp (right): https://codereview.chromium.org/182063005/diff/110001/Source/core/animation/EffectInput.cpp#newcode25 Source/core/animation/EffectInput.cpp:25: PassRefPtrWillBeRawPtr<AnimationEffect> EffectInput::convert(Element* element, Vector<Dictionary> keyframeDictionaryVector, bool unsafe) On 2014/03/04 ...
6 years, 9 months ago (2014-03-04 01:21:41 UTC) #21
dstockwell
https://codereview.chromium.org/182063005/diff/110001/Source/core/animation/EffectInput.cpp File Source/core/animation/EffectInput.cpp (right): https://codereview.chromium.org/182063005/diff/110001/Source/core/animation/EffectInput.cpp#newcode44 Source/core/animation/EffectInput.cpp:44: if (keyframeDictionaryVector[i].get("offset", offset)) { On 2014/03/04 00:59:42, esprehn wrote: ...
6 years, 9 months ago (2014-03-04 01:29:30 UTC) #22
alancutter (OOO until 2018)
https://codereview.chromium.org/182063005/diff/130001/Source/core/animation/EffectInput.cpp File Source/core/animation/EffectInput.cpp (right): https://codereview.chromium.org/182063005/diff/130001/Source/core/animation/EffectInput.cpp#newcode1 Source/core/animation/EffectInput.cpp:1: // Copyright 2014 The Chromium Authors. All rights reserved. ...
6 years, 9 months ago (2014-03-04 01:35:14 UTC) #23
esprehn
lgtm, thanks for the iteration! :)
6 years, 9 months ago (2014-03-04 01:37:28 UTC) #24
dstockwell
lgtm
6 years, 9 months ago (2014-03-04 01:43:31 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alancutter@chromium.org/182063005/150001
6 years, 9 months ago (2014-03-04 01:43:38 UTC) #26
alancutter (OOO until 2018)
Thanks for the speedy reviews. :)
6 years, 9 months ago (2014-03-04 01:45:10 UTC) #27
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-04 17:24:24 UTC) #28
commit-bot: I haz the power
Retried try job too often on win_layout for step(s) webkit_lint http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_layout&number=25578
6 years, 9 months ago (2014-03-04 17:24:24 UTC) #29
alancutter (OOO until 2018)
The CQ bit was checked by alancutter@chromium.org
6 years, 9 months ago (2014-03-04 22:58:38 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alancutter@chromium.org/182063005/150001
6 years, 9 months ago (2014-03-04 22:58:46 UTC) #31
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-04 22:58:50 UTC) #32
commit-bot: I haz the power
Failed to apply patch for Source/core/animation/TimingInputTest.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; A Source/core/animation/TimingInputTest.cpp ...
6 years, 9 months ago (2014-03-04 22:58:50 UTC) #33
alancutter (OOO until 2018)
The CQ bit was checked by alancutter@chromium.org
6 years, 9 months ago (2014-03-04 23:27:34 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alancutter@chromium.org/182063005/160001
6 years, 9 months ago (2014-03-04 23:28:12 UTC) #35
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-05 17:54:48 UTC) #36
commit-bot: I haz the power
Failed to apply patch for Source/core/animation/AnimationTest.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 9 months ago (2014-03-05 17:54:49 UTC) #37
alancutter (OOO until 2018)
The CQ bit was checked by alancutter@chromium.org
6 years, 9 months ago (2014-03-05 22:54:43 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alancutter@chromium.org/182063005/180001
6 years, 9 months ago (2014-03-05 22:55:09 UTC) #39
commit-bot: I haz the power
Change committed as 168575
6 years, 9 months ago (2014-03-06 05:49:53 UTC) #40
esprehn
6 years, 9 months ago (2014-03-06 06:23:09 UTC) #41
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698