mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 13:57:36 +00:00
LibWeb: Format all .idl files to use four space indentation
This commit is contained in:
parent
d720fb8845
commit
5f5ac48908
21 changed files with 163 additions and 167 deletions
|
@ -7,32 +7,31 @@
|
|||
interface Animation : EventTarget {
|
||||
constructor(optional AnimationEffect? effect = null,
|
||||
optional AnimationTimeline? timeline);
|
||||
attribute DOMString id;
|
||||
attribute AnimationEffect? effect;
|
||||
attribute AnimationTimeline? timeline;
|
||||
attribute double? startTime;
|
||||
attribute double? currentTime;
|
||||
attribute double playbackRate;
|
||||
readonly attribute AnimationPlayState playState;
|
||||
readonly attribute AnimationReplaceState replaceState;
|
||||
readonly attribute boolean pending;
|
||||
readonly attribute Promise<Animation> ready;
|
||||
readonly attribute Promise<Animation> finished;
|
||||
|
||||
// FIXME:
|
||||
// attribute EventHandler onfinish;
|
||||
// attribute EventHandler oncancel;
|
||||
// attribute EventHandler onremove;
|
||||
attribute DOMString id;
|
||||
attribute AnimationEffect? effect;
|
||||
attribute AnimationTimeline? timeline;
|
||||
attribute double? startTime;
|
||||
attribute double? currentTime;
|
||||
attribute double playbackRate;
|
||||
readonly attribute AnimationPlayState playState;
|
||||
readonly attribute AnimationReplaceState replaceState;
|
||||
readonly attribute boolean pending;
|
||||
readonly attribute Promise<Animation> ready;
|
||||
readonly attribute Promise<Animation> finished;
|
||||
|
||||
// undefined cancel();
|
||||
// undefined finish();
|
||||
// undefined play();
|
||||
// undefined pause();
|
||||
// undefined updatePlaybackRate(double playbackRate);
|
||||
// undefined reverse();
|
||||
// undefined persist();
|
||||
// [CEReactions]
|
||||
// undefined commitStyles();
|
||||
// FIXME: attribute EventHandler onfinish;
|
||||
// FIXME: attribute EventHandler oncancel;
|
||||
// FIXME: attribute EventHandler onremove;
|
||||
|
||||
// FIXME: undefined cancel();
|
||||
// FIXME: undefined finish();
|
||||
// FIXME: undefined play();
|
||||
// FIXME: undefined pause();
|
||||
// FIXME: undefined updatePlaybackRate(double playbackRate);
|
||||
// FIXME: undefined reverse();
|
||||
// FIXME: undefined persist();
|
||||
// FIXME: [CEReactions] undefined commitStyles();
|
||||
};
|
||||
|
||||
// https://www.w3.org/TR/web-animations-1/#the-animationplaystate-enumeration
|
||||
|
|
|
@ -1,25 +1,25 @@
|
|||
// https://www.w3.org/TR/web-animations-1/#the-effecttiming-dictionaries
|
||||
dictionary EffectTiming {
|
||||
double delay = 0;
|
||||
double endDelay = 0;
|
||||
FillMode fill = "auto";
|
||||
double iterationStart = 0.0;
|
||||
unrestricted double iterations = 1.0;
|
||||
double delay = 0;
|
||||
double endDelay = 0;
|
||||
FillMode fill = "auto";
|
||||
double iterationStart = 0.0;
|
||||
unrestricted double iterations = 1.0;
|
||||
(unrestricted double or DOMString) duration = "auto";
|
||||
PlaybackDirection direction = "normal";
|
||||
DOMString easing = "linear";
|
||||
PlaybackDirection direction = "normal";
|
||||
DOMString easing = "linear";
|
||||
};
|
||||
|
||||
// https://www.w3.org/TR/web-animations-1/#dictdef-optionaleffecttiming
|
||||
dictionary OptionalEffectTiming {
|
||||
double delay;
|
||||
double endDelay;
|
||||
FillMode fill;
|
||||
double iterationStart;
|
||||
unrestricted double iterations;
|
||||
double delay;
|
||||
double endDelay;
|
||||
FillMode fill;
|
||||
double iterationStart;
|
||||
unrestricted double iterations;
|
||||
(unrestricted double or DOMString) duration;
|
||||
PlaybackDirection direction;
|
||||
DOMString easing;
|
||||
PlaybackDirection direction;
|
||||
DOMString easing;
|
||||
};
|
||||
|
||||
// https://www.w3.org/TR/web-animations-1/#the-fillmode-enumeration
|
||||
|
@ -30,17 +30,17 @@ enum PlaybackDirection { "normal", "reverse", "alternate", "alternate-reverse" }
|
|||
|
||||
// https://www.w3.org/TR/web-animations-1/#the-computedeffecttiming-dictionary
|
||||
dictionary ComputedEffectTiming : EffectTiming {
|
||||
unrestricted double endTime;
|
||||
unrestricted double activeDuration;
|
||||
double? localTime;
|
||||
double? progress;
|
||||
unrestricted double endTime;
|
||||
unrestricted double activeDuration;
|
||||
double? localTime;
|
||||
double? progress;
|
||||
unrestricted double? currentIteration;
|
||||
};
|
||||
|
||||
// https://www.w3.org/TR/web-animations-1/#the-animationeffect-interface
|
||||
[Exposed=Window]
|
||||
interface AnimationEffect {
|
||||
EffectTiming getTiming();
|
||||
EffectTiming getTiming();
|
||||
ComputedEffectTiming getComputedTiming();
|
||||
undefined updateTiming(optional OptionalEffectTiming timing = {});
|
||||
undefined updateTiming(optional OptionalEffectTiming timing = {});
|
||||
};
|
||||
|
|
|
@ -3,11 +3,11 @@
|
|||
|
||||
// https://www.w3.org/TR/web-animations-1/#dictdef-documenttimelineoptions
|
||||
dictionary DocumentTimelineOptions {
|
||||
DOMHighResTimeStamp originTime = 0;
|
||||
DOMHighResTimeStamp originTime = 0;
|
||||
};
|
||||
|
||||
// https://www.w3.org/TR/web-animations-1/#documenttimeline
|
||||
[Exposed=Window]
|
||||
interface DocumentTimeline : AnimationTimeline {
|
||||
constructor(optional DocumentTimelineOptions options = {});
|
||||
constructor(optional DocumentTimelineOptions options = {});
|
||||
};
|
||||
|
|
|
@ -10,34 +10,32 @@ enum CompositeOperationOrAuto { "replace", "add", "accumulate", "auto" };
|
|||
// https://www.w3.org/TR/web-animations-1/#the-keyframeeffectoptions-dictionary
|
||||
dictionary KeyframeEffectOptions : EffectTiming {
|
||||
CompositeOperation composite = "replace";
|
||||
CSSOMString? pseudoElement = null;
|
||||
CSSOMString? pseudoElement = null;
|
||||
};
|
||||
|
||||
// https://www.w3.org/TR/web-animations-1/#dictdef-basepropertyindexedkeyframe
|
||||
dictionary BasePropertyIndexedKeyframe {
|
||||
(double? or sequence<double?>) offset = [];
|
||||
(DOMString or sequence<DOMString>) easing = [];
|
||||
(double? or sequence<double?>) offset = [];
|
||||
(DOMString or sequence<DOMString>) easing = [];
|
||||
(CompositeOperationOrAuto or sequence<CompositeOperationOrAuto>) composite = [];
|
||||
};
|
||||
|
||||
// https://www.w3.org/TR/web-animations-1/#dictdef-basekeyframe
|
||||
dictionary BaseKeyframe {
|
||||
double? offset = null;
|
||||
DOMString easing = "linear";
|
||||
double? offset = null;
|
||||
DOMString easing = "linear";
|
||||
CompositeOperationOrAuto composite = "auto";
|
||||
};
|
||||
|
||||
// https://www.w3.org/TR/web-animations-1/#the-keyframeeffect-interface
|
||||
[Exposed=Window]
|
||||
interface KeyframeEffect : AnimationEffect {
|
||||
constructor(Element? target,
|
||||
object? keyframes,
|
||||
optional (unrestricted double or KeyframeEffectOptions) options = {});
|
||||
constructor(Element? target, object? keyframes, optional (unrestricted double or KeyframeEffectOptions) options = {});
|
||||
constructor(KeyframeEffect source);
|
||||
|
||||
attribute Element? target;
|
||||
attribute CSSOMString? pseudoElement;
|
||||
attribute Element? target;
|
||||
attribute CSSOMString? pseudoElement;
|
||||
attribute CompositeOperation composite;
|
||||
sequence<object> getKeyframes();
|
||||
undefined setKeyframes(object? keyframes);
|
||||
undefined setKeyframes(object? keyframes);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue