mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 15:10:19 +00:00
LibWeb: Normalize all WebIDL definition lines to four leading spaces
This change takes all existing WebIDL files in the repo that had definition lines without four leading spaces, and fixes them so they have four leading spaces.
This commit is contained in:
parent
f9282f65d3
commit
51528ec677
Notes:
github-actions[bot]
2024-09-10 20:17:56 +00:00
Author: https://github.com/sideshowbarker Commit: https://github.com/LadybirdBrowser/ladybird/commit/51528ec6779 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1358 Reviewed-by: https://github.com/AtkinsSJ ✅
21 changed files with 108 additions and 110 deletions
|
@ -3,15 +3,15 @@
|
|||
// https://www.w3.org/TR/css-animations-1/#animationevent
|
||||
[Exposed=Window]
|
||||
interface AnimationEvent : Event {
|
||||
constructor(CSSOMString type, optional AnimationEventInit animationEventInitDict = {});
|
||||
readonly attribute CSSOMString animationName;
|
||||
readonly attribute double elapsedTime;
|
||||
readonly attribute CSSOMString pseudoElement;
|
||||
constructor(CSSOMString type, optional AnimationEventInit animationEventInitDict = {});
|
||||
readonly attribute CSSOMString animationName;
|
||||
readonly attribute double elapsedTime;
|
||||
readonly attribute CSSOMString pseudoElement;
|
||||
};
|
||||
|
||||
// https://www.w3.org/TR/css-animations-1/#dictdef-animationeventinit
|
||||
dictionary AnimationEventInit : EventInit {
|
||||
CSSOMString animationName = "";
|
||||
double elapsedTime = 0.0;
|
||||
CSSOMString pseudoElement = "";
|
||||
CSSOMString animationName = "";
|
||||
double elapsedTime = 0.0;
|
||||
CSSOMString pseudoElement = "";
|
||||
};
|
||||
|
|
|
@ -3,5 +3,5 @@
|
|||
// https://www.w3.org/TR/css-animations-2/#cssanimation
|
||||
[Exposed=Window]
|
||||
interface CSSAnimation : Animation {
|
||||
readonly attribute CSSOMString animationName;
|
||||
readonly attribute CSSOMString animationName;
|
||||
};
|
||||
|
|
|
@ -3,5 +3,5 @@
|
|||
// https://drafts.csswg.org/css-transitions-2/#the-CSSTransition-interface
|
||||
[Exposed=Window]
|
||||
interface CSSTransition : Animation {
|
||||
readonly attribute CSSOMString transitionProperty;
|
||||
readonly attribute CSSOMString transitionProperty;
|
||||
};
|
||||
|
|
|
@ -5,8 +5,8 @@ enum KeyUsage { "encrypt", "decrypt", "sign", "verify", "deriveKey", "deriveBits
|
|||
// https://w3c.github.io/webcrypto/#cryptokey-interface
|
||||
[SecureContext,Exposed=(Window,Worker),Serializable]
|
||||
interface CryptoKey {
|
||||
readonly attribute KeyType type;
|
||||
readonly attribute boolean extractable;
|
||||
readonly attribute object algorithm;
|
||||
readonly attribute object usages;
|
||||
readonly attribute KeyType type;
|
||||
readonly attribute boolean extractable;
|
||||
readonly attribute object algorithm;
|
||||
readonly attribute object usages;
|
||||
};
|
||||
|
|
|
@ -15,8 +15,7 @@ dictionary RsaOtherPrimesInfo {
|
|||
DOMString t;
|
||||
};
|
||||
|
||||
dictionary JsonWebKey
|
||||
{
|
||||
dictionary JsonWebKey {
|
||||
// The following fields are defined in Section 3.1 of JSON Web Key
|
||||
DOMString kty;
|
||||
DOMString use;
|
||||
|
|
|
@ -4,16 +4,16 @@
|
|||
// https://html.spec.whatwg.org/multipage/interaction.html#closewatcher
|
||||
[Exposed=Window]
|
||||
interface CloseWatcher : EventTarget {
|
||||
constructor(optional CloseWatcherOptions options = {});
|
||||
constructor(optional CloseWatcherOptions options = {});
|
||||
|
||||
undefined requestClose();
|
||||
undefined close();
|
||||
undefined destroy();
|
||||
undefined requestClose();
|
||||
undefined close();
|
||||
undefined destroy();
|
||||
|
||||
attribute EventHandler oncancel;
|
||||
attribute EventHandler onclose;
|
||||
attribute EventHandler oncancel;
|
||||
attribute EventHandler onclose;
|
||||
};
|
||||
|
||||
dictionary CloseWatcherOptions {
|
||||
AbortSignal signal;
|
||||
AbortSignal signal;
|
||||
};
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
#import <DOM/Element.idl>
|
||||
#import <DOM/HTMLCollection.idl>
|
||||
|
||||
[Exposed=Window,
|
||||
LegacyUnenumerableNamedProperties]
|
||||
[Exposed=Window, LegacyUnenumerableNamedProperties]
|
||||
interface HTMLAllCollection {
|
||||
readonly attribute unsigned long length;
|
||||
getter Element (unsigned long index);
|
||||
|
|
|
@ -3,13 +3,13 @@
|
|||
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#hashchangeevent
|
||||
[Exposed=Window]
|
||||
interface HashChangeEvent : Event {
|
||||
constructor(DOMString type, optional HashChangeEventInit eventInitDict = {});
|
||||
constructor(DOMString type, optional HashChangeEventInit eventInitDict = {});
|
||||
|
||||
readonly attribute USVString oldURL;
|
||||
readonly attribute USVString newURL;
|
||||
readonly attribute USVString oldURL;
|
||||
readonly attribute USVString newURL;
|
||||
};
|
||||
|
||||
dictionary HashChangeEventInit : EventInit {
|
||||
USVString oldURL = "";
|
||||
USVString newURL = "";
|
||||
USVString oldURL = "";
|
||||
USVString newURL = "";
|
||||
};
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
enum PredefinedColorSpace { "srgb", "display-p3" };
|
||||
|
||||
dictionary ImageDataSettings {
|
||||
PredefinedColorSpace colorSpace;
|
||||
PredefinedColorSpace colorSpace;
|
||||
};
|
||||
|
||||
[Exposed=(Window,Worker), Serializable]
|
||||
|
|
|
@ -3,13 +3,13 @@
|
|||
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#popstateevent
|
||||
[Exposed=Window]
|
||||
interface PopStateEvent : Event {
|
||||
constructor(DOMString type, optional PopStateEventInit eventInitDict = {});
|
||||
constructor(DOMString type, optional PopStateEventInit eventInitDict = {});
|
||||
|
||||
readonly attribute any state;
|
||||
[FIXME] readonly attribute boolean hasUAVisualTransition;
|
||||
readonly attribute any state;
|
||||
[FIXME] readonly attribute boolean hasUAVisualTransition;
|
||||
};
|
||||
|
||||
dictionary PopStateEventInit : EventInit {
|
||||
any state = null;
|
||||
any state = null;
|
||||
// FIXME: boolean hasUAVisualTransition = false;
|
||||
};
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
[Exposed=Window]
|
||||
interface PerformanceNavigation {
|
||||
const unsigned short TYPE_NAVIGATE = 0;
|
||||
const unsigned short TYPE_RELOAD = 1;
|
||||
const unsigned short TYPE_BACK_FORWARD = 2;
|
||||
const unsigned short TYPE_RESERVED = 255;
|
||||
readonly attribute unsigned short type;
|
||||
readonly attribute unsigned short redirectCount;
|
||||
[Default] object toJSON();
|
||||
};
|
||||
const unsigned short TYPE_NAVIGATE = 0;
|
||||
const unsigned short TYPE_RELOAD = 1;
|
||||
const unsigned short TYPE_BACK_FORWARD = 2;
|
||||
const unsigned short TYPE_RESERVED = 255;
|
||||
readonly attribute unsigned short type;
|
||||
readonly attribute unsigned short redirectCount;
|
||||
[Default] object toJSON();
|
||||
};
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
// https://svgwg.org/svg2-draft/single-page.html#coords-InterfaceSVGAnimatedTransformList
|
||||
[Exposed=Window]
|
||||
interface SVGAnimatedTransformList {
|
||||
[SameObject] readonly attribute SVGTransformList baseVal;
|
||||
[SameObject] readonly attribute SVGTransformList animVal;
|
||||
[SameObject] readonly attribute SVGTransformList baseVal;
|
||||
[SameObject] readonly attribute SVGTransformList animVal;
|
||||
};
|
||||
|
|
|
@ -2,18 +2,18 @@
|
|||
#import <Geometry/DOMRectReadOnly.idl>
|
||||
|
||||
dictionary SVGBoundingBoxOptions {
|
||||
boolean fill = true;
|
||||
boolean stroke = false;
|
||||
boolean markers = false;
|
||||
boolean clipped = false;
|
||||
boolean fill = true;
|
||||
boolean stroke = false;
|
||||
boolean markers = false;
|
||||
boolean clipped = false;
|
||||
};
|
||||
|
||||
// https://svgwg.org/svg2-draft/types.html#InterfaceSVGGraphicsElement
|
||||
[Exposed=Window]
|
||||
interface SVGGraphicsElement : SVGElement {
|
||||
[SameObject] readonly attribute SVGAnimatedTransformList transform;
|
||||
[SameObject] readonly attribute SVGAnimatedTransformList transform;
|
||||
|
||||
DOMRect getBBox(optional SVGBoundingBoxOptions options = {});
|
||||
[FIXME] DOMMatrix? getCTM();
|
||||
[FIXME] DOMMatrix? getScreenCTM();
|
||||
DOMRect getBBox(optional SVGBoundingBoxOptions options = {});
|
||||
[FIXME] DOMMatrix? getCTM();
|
||||
[FIXME] DOMMatrix? getScreenCTM();
|
||||
};
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
// https://svgwg.org/svg2-draft/single-page.html#pservers-InterfaceSVGLinearGradientElement
|
||||
[Exposed=Window]
|
||||
interface SVGLinearGradientElement : SVGGradientElement {
|
||||
[SameObject] readonly attribute SVGAnimatedLength x1;
|
||||
[SameObject] readonly attribute SVGAnimatedLength y1;
|
||||
[SameObject] readonly attribute SVGAnimatedLength x2;
|
||||
[SameObject] readonly attribute SVGAnimatedLength y2;
|
||||
[SameObject] readonly attribute SVGAnimatedLength x1;
|
||||
[SameObject] readonly attribute SVGAnimatedLength y1;
|
||||
[SameObject] readonly attribute SVGAnimatedLength x2;
|
||||
[SameObject] readonly attribute SVGAnimatedLength y2;
|
||||
};
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
// https://svgwg.org/svg2-draft/single-page.html#pservers-InterfaceSVGRadialGradientElement
|
||||
[Exposed=Window]
|
||||
interface SVGRadialGradientElement : SVGGradientElement {
|
||||
[SameObject] readonly attribute SVGAnimatedLength cx;
|
||||
[SameObject] readonly attribute SVGAnimatedLength cy;
|
||||
[SameObject] readonly attribute SVGAnimatedLength r;
|
||||
[SameObject] readonly attribute SVGAnimatedLength fx;
|
||||
[SameObject] readonly attribute SVGAnimatedLength fy;
|
||||
[SameObject] readonly attribute SVGAnimatedLength fr;
|
||||
[SameObject] readonly attribute SVGAnimatedLength cx;
|
||||
[SameObject] readonly attribute SVGAnimatedLength cy;
|
||||
[SameObject] readonly attribute SVGAnimatedLength r;
|
||||
[SameObject] readonly attribute SVGAnimatedLength fx;
|
||||
[SameObject] readonly attribute SVGAnimatedLength fy;
|
||||
[SameObject] readonly attribute SVGAnimatedLength fr;
|
||||
};
|
||||
|
|
|
@ -5,38 +5,38 @@
|
|||
// https://svgwg.org/svg2-draft/struct.html#InterfaceSVGSVGElement
|
||||
[Exposed=Window]
|
||||
interface SVGSVGElement : SVGGraphicsElement {
|
||||
[SameObject] readonly attribute SVGAnimatedLength x;
|
||||
[SameObject] readonly attribute SVGAnimatedLength y;
|
||||
[SameObject] readonly attribute SVGAnimatedLength width;
|
||||
[SameObject] readonly attribute SVGAnimatedLength height;
|
||||
[SameObject] readonly attribute SVGAnimatedLength x;
|
||||
[SameObject] readonly attribute SVGAnimatedLength y;
|
||||
[SameObject] readonly attribute SVGAnimatedLength width;
|
||||
[SameObject] readonly attribute SVGAnimatedLength height;
|
||||
|
||||
attribute float currentScale;
|
||||
[SameObject] readonly attribute DOMPointReadOnly currentTranslate;
|
||||
attribute float currentScale;
|
||||
[SameObject] readonly attribute DOMPointReadOnly currentTranslate;
|
||||
|
||||
NodeList getIntersectionList(DOMRectReadOnly rect, SVGElement? referenceElement);
|
||||
NodeList getEnclosureList(DOMRectReadOnly rect, SVGElement? referenceElement);
|
||||
boolean checkIntersection(SVGElement element, DOMRectReadOnly rect);
|
||||
boolean checkEnclosure(SVGElement element, DOMRectReadOnly rect);
|
||||
NodeList getIntersectionList(DOMRectReadOnly rect, SVGElement? referenceElement);
|
||||
NodeList getEnclosureList(DOMRectReadOnly rect, SVGElement? referenceElement);
|
||||
boolean checkIntersection(SVGElement element, DOMRectReadOnly rect);
|
||||
boolean checkEnclosure(SVGElement element, DOMRectReadOnly rect);
|
||||
|
||||
undefined deselectAll();
|
||||
undefined deselectAll();
|
||||
|
||||
// FIMXE: SVGNumber createSVGNumber();
|
||||
SVGLength createSVGLength();
|
||||
[FIXME] SVGAngle createSVGAngle();
|
||||
DOMPoint createSVGPoint();
|
||||
DOMMatrix createSVGMatrix();
|
||||
DOMRect createSVGRect();
|
||||
SVGTransform createSVGTransform();
|
||||
[FIXME] SVGTransform createSVGTransformFromMatrix(optional DOMMatrix2DInit matrix = {});
|
||||
// FIXME: SVGNumber createSVGNumber();
|
||||
SVGLength createSVGLength();
|
||||
[FIXME] SVGAngle createSVGAngle();
|
||||
DOMPoint createSVGPoint();
|
||||
DOMMatrix createSVGMatrix();
|
||||
DOMRect createSVGRect();
|
||||
SVGTransform createSVGTransform();
|
||||
[FIXME] SVGTransform createSVGTransformFromMatrix(optional DOMMatrix2DInit matrix = {});
|
||||
|
||||
Element getElementById(DOMString elementId);
|
||||
Element getElementById(DOMString elementId);
|
||||
|
||||
// Deprecated methods that have no effect when called,
|
||||
// but which are kept for compatibility reasons.
|
||||
unsigned long suspendRedraw(unsigned long maxWaitMilliseconds);
|
||||
undefined unsuspendRedraw(unsigned long suspendHandleID);
|
||||
undefined unsuspendRedrawAll();
|
||||
undefined forceRedraw();
|
||||
// Deprecated methods that have no effect when called,
|
||||
// but which are kept for compatibility reasons.
|
||||
unsigned long suspendRedraw(unsigned long maxWaitMilliseconds);
|
||||
undefined unsuspendRedraw(unsigned long suspendHandleID);
|
||||
undefined unsuspendRedrawAll();
|
||||
undefined forceRedraw();
|
||||
};
|
||||
|
||||
SVGSVGElement includes SVGFitToViewBox;
|
||||
|
|
|
@ -4,5 +4,5 @@
|
|||
// https://svgwg.org/svg2-draft/single-page.html#pservers-InterfaceSVGStopElement
|
||||
[Exposed=Window]
|
||||
interface SVGStopElement : SVGElement {
|
||||
[SameObject] readonly attribute SVGAnimatedNumber offset;
|
||||
[SameObject] readonly attribute SVGAnimatedNumber offset;
|
||||
};
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
// https://svgwg.org/svg2-draft/single-page.html#styling-InterfaceSVGStyleElement
|
||||
[Exposed=Window]
|
||||
interface SVGStyleElement : SVGElement {
|
||||
[Reflect] attribute DOMString type;
|
||||
[Reflect] attribute DOMString media;
|
||||
[Reflect] attribute DOMString title;
|
||||
[Reflect] attribute DOMString type;
|
||||
[Reflect] attribute DOMString media;
|
||||
[Reflect] attribute DOMString title;
|
||||
};
|
||||
|
||||
SVGStyleElement includes LinkStyle;
|
||||
|
|
|
@ -3,19 +3,19 @@
|
|||
// https://svgwg.org/svg2-draft/single-page.html#coords-InterfaceSVGTransformList
|
||||
[Exposed=Window]
|
||||
interface SVGTransformList {
|
||||
readonly attribute unsigned long length;
|
||||
readonly attribute unsigned long numberOfItems;
|
||||
readonly attribute unsigned long length;
|
||||
readonly attribute unsigned long numberOfItems;
|
||||
|
||||
[FIXME] undefined clear();
|
||||
[FIXME] undefined clear();
|
||||
// FIXME: SVGTransform initialize(SVGTransform newItem);
|
||||
getter SVGTransform getItem(unsigned long index);
|
||||
[FIXME] SVGTransform insertItemBefore(SVGTransform newItem, unsigned long index);
|
||||
[FIXME] SVGTransform replaceItem(SVGTransform newItem, unsigned long index);
|
||||
[FIXME] SVGTransform removeItem(unsigned long index);
|
||||
SVGTransform appendItem(SVGTransform newItem);
|
||||
getter SVGTransform getItem(unsigned long index);
|
||||
[FIXME] SVGTransform insertItemBefore(SVGTransform newItem, unsigned long index);
|
||||
[FIXME] SVGTransform replaceItem(SVGTransform newItem, unsigned long index);
|
||||
[FIXME] SVGTransform removeItem(unsigned long index);
|
||||
SVGTransform appendItem(SVGTransform newItem);
|
||||
// FIXME: setter undefined (unsigned long index, SVGTransform newItem);
|
||||
|
||||
// Additional methods not common to other list interfaces.
|
||||
[FIXME] SVGTransform createSVGTransformFromMatrix(optional DOMMatrix2DInit matrix = {});
|
||||
[FIXME] SVGTransform? consolidate();
|
||||
[FIXME] SVGTransform createSVGTransformFromMatrix(optional DOMMatrix2DInit matrix = {});
|
||||
[FIXME] SVGTransform? consolidate();
|
||||
};
|
||||
|
|
|
@ -6,12 +6,12 @@
|
|||
// https://svgwg.org/svg2-draft/struct.html#InterfaceSVGUseElement
|
||||
[Exposed=Window]
|
||||
interface SVGUseElement : SVGGraphicsElement {
|
||||
[SameObject] readonly attribute SVGAnimatedLength x;
|
||||
[SameObject] readonly attribute SVGAnimatedLength y;
|
||||
[SameObject] readonly attribute SVGAnimatedLength width;
|
||||
[SameObject] readonly attribute SVGAnimatedLength height;
|
||||
[SameObject] readonly attribute SVGElement? instanceRoot;
|
||||
[SameObject] readonly attribute SVGElement? animatedInstanceRoot;
|
||||
[SameObject] readonly attribute SVGAnimatedLength x;
|
||||
[SameObject] readonly attribute SVGAnimatedLength y;
|
||||
[SameObject] readonly attribute SVGAnimatedLength width;
|
||||
[SameObject] readonly attribute SVGAnimatedLength height;
|
||||
[SameObject] readonly attribute SVGElement? instanceRoot;
|
||||
[SameObject] readonly attribute SVGElement? animatedInstanceRoot;
|
||||
};
|
||||
|
||||
SVGUseElement includes SVGURIReference;
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
#import <Streams/WritableStream.idl>
|
||||
|
||||
dictionary ReadableWritablePair {
|
||||
required ReadableStream readable;
|
||||
required WritableStream writable;
|
||||
required ReadableStream readable;
|
||||
required WritableStream writable;
|
||||
};
|
||||
|
||||
dictionary StreamPipeOptions {
|
||||
|
|
Loading…
Reference in a new issue