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

Issue 2814523002: Web Animations: Coalesce constructors where possible. (Closed)

Created:
3 years, 8 months ago by Raphael Kubo da Costa (rakuco)
Modified:
3 years, 8 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/heads/master
Project:
chromium
Visibility:
Public.

Description

Web Animations: Coalesce constructors where possible. ElementAnimation.idl, KeyframeEffect.idl and KeyframeEffectReadOnly.idl were specifying two constructors to deal with the fact that, at some point, union types did not support dictionary type members. This is no longer the case, so we can have a single constructor that matches the IDLs in the Web Animations spec instead (in ElementAnimation's case, we also move from "double" to "unrestricted double" to match the spec). We achieve this by using the UnrestrictedDoubleOrKeyframeEffectOptions union type (which works just fine) and leaving it up to TimingInput to process each possible type accordingly. BUG=624639 R=alancutter@chromium.org,dstockwell@chromium.org,haraken@chromium.org Review-Url: https://codereview.chromium.org/2814523002 Cr-Commit-Position: refs/heads/master@{#463987} Committed: https://chromium.googlesource.com/chromium/src/+/3a9d689cfc759f63f6d113cde80efa9801125c3c

Patch Set 1 #

Patch Set 2 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -98 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/animation/ElementAnimation.h View 1 3 chunks +8 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/core/animation/ElementAnimation.idl View 1 chunk +1 line, -4 lines 0 comments Download
M third_party/WebKit/Source/core/animation/KeyframeEffect.h View 2 chunks +2 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/animation/KeyframeEffect.cpp View 3 chunks +3 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/core/animation/KeyframeEffect.idl View 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.h View 2 chunks +2 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.cpp View 3 chunks +3 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.idl View 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/core/animation/KeyframeEffectTest.cpp View 2 chunks +18 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/animation/TimingInput.h View 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/animation/TimingInput.cpp View 2 chunks +19 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (10 generated)
Raphael Kubo da Costa (rakuco)
PTAL alancutter, dstockwell for the actual animation bits. haraken for the build system change.
3 years, 8 months ago (2017-04-10 17:18:32 UTC) #3
haraken
LGTM
3 years, 8 months ago (2017-04-11 00:07:27 UTC) #6
alancutter (OOO until 2018)
lgtm, nice!
3 years, 8 months ago (2017-04-12 05:17:56 UTC) #7
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/2814523002/1
3 years, 8 months ago (2017-04-12 07:14:44 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/189141) ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 8 months ago (2017-04-12 07:16:52 UTC) #11
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/2814523002/20001
3 years, 8 months ago (2017-04-12 07:24:06 UTC) #14
commit-bot: I haz the power
3 years, 8 months ago (2017-04-12 10:49:03 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/3a9d689cfc759f63f6d113cde80e...

Powered by Google App Engine
This is Rietveld 408576698