Chromium Code Reviews
DescriptionWeb 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 #Messages
Total messages: 17 (10 generated)
|