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

Issue 2334123002: Web Animations: Support iterator protocol in property indexed keyframe values (Closed)

Created:
4 years, 3 months ago by alancutter (OOO until 2018)
Modified:
4 years, 3 months ago
CC:
darktears, blink-reviews, blink-reviews-animation_chromium.org, blink-reviews-bindings_chromium.org, chromium-reviews, Eric Willigers, rjwright, shans
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Web Animations: Support iterator protocol in property indexed keyframe values For element.animate() calls of the form "element.animate({property: [a, b, c]}, timing);" we were not accepting non-array iterables for the value list. This patch extends support for generic iterable objects to property indexed keyframe values. This behaviour corresponds to step 6.3 of http://w3c.github.io/web-animations/#process-a-keyframe-like-object where we cast the values as a (DOMString or sequence<DOMString>) object. BUG=645393 Committed: https://crrev.com/3abd8209bdc0a59fda5350b4e893c1eb0a28be88 Cr-Commit-Position: refs/heads/master@{#418507}

Patch Set 1 #

Patch Set 2 : Exception handling #

Total comments: 4

Patch Set 3 : Review change #

Patch Set 4 : Crash test #

Total comments: 1

Patch Set 5 : moarcomntents. #

Patch Set 6 : Add missing null check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -13 lines) Patch
M third_party/WebKit/LayoutTests/animations/element-animate-iterable-keyframes.html View 1 2 2 chunks +34 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/animations/unstringable-keyframe-value-crash.html View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/DictionaryIterator.h View 2 chunks +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/DictionaryIterator.cpp View 4 chunks +23 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/animation/EffectInput.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/animation/EffectInput.cpp View 1 2 3 4 5 3 chunks +42 lines, -8 lines 0 comments Download

Messages

Total messages: 25 (10 generated)
alancutter (OOO until 2018)
suzyh for core/animation. haraken for bindings.
4 years, 3 months ago (2016-09-13 06:38:03 UTC) #3
haraken
LGTM
4 years, 3 months ago (2016-09-13 06:42:05 UTC) #4
suzyh_UTC10 (ex-contributor)
Devil's advocate: Does the spec say we need to support iterators here, or is there ...
4 years, 3 months ago (2016-09-13 07:19:57 UTC) #5
alancutter (OOO until 2018)
On 2016/09/13 at 07:19:57, suzyh wrote: > Devil's advocate: Does the spec say we need ...
4 years, 3 months ago (2016-09-13 07:29:51 UTC) #7
suzyh_UTC10 (ex-contributor)
Ideally I'd like to separate code that needs to know about parsing stuff and iterators ...
4 years, 3 months ago (2016-09-13 08:21:21 UTC) #9
alancutter (OOO until 2018)
Thanks for the thorough review. https://codereview.chromium.org/2334123002/diff/20001/third_party/WebKit/Source/core/animation/EffectInput.cpp File third_party/WebKit/Source/core/animation/EffectInput.cpp (right): https://codereview.chromium.org/2334123002/diff/20001/third_party/WebKit/Source/core/animation/EffectInput.cpp#newcode233 third_party/WebKit/Source/core/animation/EffectInput.cpp:233: if (iterator.isNull()) { On ...
4 years, 3 months ago (2016-09-13 09:31:28 UTC) #10
alancutter (OOO until 2018)
Heh, turns out the old code crashes on a slight variant of the new test ...
4 years, 3 months ago (2016-09-13 09:43:30 UTC) #11
alancutter (OOO until 2018)
On 2016/09/13 at 09:43:30, alancutter wrote: > Heh, turns out the old code crashes on ...
4 years, 3 months ago (2016-09-13 09:53:12 UTC) #12
suzyh_UTC10 (ex-contributor)
lgtm with nit https://codereview.chromium.org/2334123002/diff/60001/third_party/WebKit/Source/core/animation/EffectInput.cpp File third_party/WebKit/Source/core/animation/EffectInput.cpp (right): https://codereview.chromium.org/2334123002/diff/60001/third_party/WebKit/Source/core/animation/EffectInput.cpp#newcode229 third_party/WebKit/Source/core/animation/EffectInput.cpp:229: // The above get() only works ...
4 years, 3 months ago (2016-09-14 01:07:53 UTC) #13
alancutter (OOO until 2018)
On 2016/09/14 at 01:07:53, suzyh wrote: > lgtm with nit > > https://codereview.chromium.org/2334123002/diff/60001/third_party/WebKit/Source/core/animation/EffectInput.cpp > File ...
4 years, 3 months ago (2016-09-14 01:11:34 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2334123002/80001
4 years, 3 months ago (2016-09-14 01:12:26 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/292603)
4 years, 3 months ago (2016-09-14 03:46:10 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2334123002/100001
4 years, 3 months ago (2016-09-14 06:21:06 UTC) #22
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 3 months ago (2016-09-14 07:59:30 UTC) #23
commit-bot: I haz the power
4 years, 3 months ago (2016-09-14 08:01:46 UTC) #25
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/3abd8209bdc0a59fda5350b4e893c1eb0a28be88
Cr-Commit-Position: refs/heads/master@{#418507}

Powered by Google App Engine
This is Rietveld 408576698