Skip to content

Commit

Permalink
Replace void with undefined in Web IDL
Browse files Browse the repository at this point in the history
  • Loading branch information
foolip authored and dontcallmedom committed Apr 21, 2021
1 parent 0f465d2 commit 4520451
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 48 deletions.
16 changes: 8 additions & 8 deletions master/coords.html
Expand Up @@ -3206,12 +3206,12 @@ <h3 id="InterfaceSVGTransform">Interface SVGTransform</h3>
[SameObject] readonly attribute <a>DOMMatrix</a> <a href="coords.html#__svg__SVGTransform__matrix">matrix</a>;
readonly attribute float <a href="coords.html#__svg__SVGTransform__angle">angle</a>;

void <a href="coords.html#__svg__SVGTransform__setMatrix">setMatrix</a>(optional <a>DOMMatrix2DInit</a> matrix);
void <a href="coords.html#__svg__SVGTransform__setTranslate">setTranslate</a>(float tx, float ty);
void <a href="coords.html#__svg__SVGTransform__setScale">setScale</a>(float sx, float sy);
void <a href="coords.html#__svg__SVGTransform__setRotate">setRotate</a>(float angle, float cx, float cy);
void <a href="coords.html#__svg__SVGTransform__setSkewX">setSkewX</a>(float angle);
void <a href="coords.html#__svg__SVGTransform__setSkewY">setSkewY</a>(float angle);
undefined <a href="coords.html#__svg__SVGTransform__setMatrix">setMatrix</a>(optional <a>DOMMatrix2DInit</a> matrix);
undefined <a href="coords.html#__svg__SVGTransform__setTranslate">setTranslate</a>(float tx, float ty);
undefined <a href="coords.html#__svg__SVGTransform__setScale">setScale</a>(float sx, float sy);
undefined <a href="coords.html#__svg__SVGTransform__setRotate">setRotate</a>(float angle, float cx, float cy);
undefined <a href="coords.html#__svg__SVGTransform__setSkewX">setSkewX</a>(float angle);
undefined <a href="coords.html#__svg__SVGTransform__setSkewY">setSkewY</a>(float angle);
};</pre>

<p>The numeric transform type constants defined on <a>SVGTransform</a> are used
Expand Down Expand Up @@ -3418,14 +3418,14 @@ <h3 id="InterfaceSVGTransformList">Interface SVGTransformList</h3>
readonly attribute unsigned long <a href="types.html#__svg__SVGNameList__length">length</a>;
readonly attribute unsigned long <a href="types.html#__svg__SVGNameList__numberOfItems">numberOfItems</a>;

void <a href="types.html#__svg__SVGNameList__clear">clear</a>();
undefined <a href="types.html#__svg__SVGNameList__clear">clear</a>();
<a>SVGTransform</a> <a href="types.html#__svg__SVGNameList__initialize">initialize</a>(<a>SVGTransform</a> newItem);
getter <a>SVGTransform</a> <a href="types.html#__svg__SVGNameList__getItem">getItem</a>(unsigned long index);
<a>SVGTransform</a> <a href="types.html#__svg__SVGNameList__insertItemBefore">insertItemBefore</a>(<a>SVGTransform</a> newItem, unsigned long index);
<a>SVGTransform</a> <a href="types.html#__svg__SVGNameList__replaceItem">replaceItem</a>(<a>SVGTransform</a> newItem, unsigned long index);
<a>SVGTransform</a> <a href="types.html#__svg__SVGNameList__removeItem">removeItem</a>(unsigned long index);
<a>SVGTransform</a> <a href="types.html#__svg__SVGNameList__appendItem">appendItem</a>(<a>SVGTransform</a> newItem);
<a href="types.html#__svg__SVGNameList__setter">setter</a> void (unsigned long index, <a>SVGTransform</a> newItem);
<a href="types.html#__svg__SVGNameList__setter">setter</a> undefined (unsigned long index, <a>SVGTransform</a> newItem);

<span class='comment'>// Additional methods not common to other list interfaces.</span>
<a>SVGTransform</a> <a href="coords.html#__svg__SVGTransformList__createSVGTransformFromMatrix">createSVGTransformFromMatrix</a>(optional <a>DOMMatrix2DInit</a> matrix);
Expand Down
4 changes: 2 additions & 2 deletions master/painting.html
Expand Up @@ -3498,8 +3498,8 @@ <h3 id="InterfaceSVGMarkerElement">Interface SVGMarkerElement</h3>
[SameObject] readonly attribute <a>SVGAnimatedAngle</a> <a href="painting.html#__svg__SVGMarkerElement__orientAngle">orientAngle</a>;
attribute DOMString <a href="painting.html#__svg__SVGMarkerElement__orient">orient</a>;

void <a href="painting.html#__svg__SVGMarkerElement__setOrientToAuto">setOrientToAuto</a>();
void <a href="painting.html#__svg__SVGMarkerElement__setOrientToAngle">setOrientToAngle</a>(<a>SVGAngle</a> angle);
undefined <a href="painting.html#__svg__SVGMarkerElement__setOrientToAuto">setOrientToAuto</a>();
undefined <a href="painting.html#__svg__SVGMarkerElement__setOrientToAngle">setOrientToAngle</a>(<a>SVGAngle</a> angle);
};

<a>SVGMarkerElement</a> includes <a>SVGFitToViewBox</a>;</pre>
Expand Down
4 changes: 2 additions & 2 deletions master/shapes.html
Expand Up @@ -696,14 +696,14 @@ <h3 id="InterfaceSVGPointList">Interface SVGPointList</h3>
readonly attribute unsigned long <a href="types.html#__svg__SVGNameList__length">length</a>;
readonly attribute unsigned long <a href="types.html#__svg__SVGNameList__numberOfItems">numberOfItems</a>;

void <a href="types.html#__svg__SVGNameList__clear">clear</a>();
undefined <a href="types.html#__svg__SVGNameList__clear">clear</a>();
<a>DOMPoint</a> <a href="types.html#__svg__SVGNameList__initialize">initialize</a>(<a>DOMPoint</a> newItem);
getter <a>DOMPoint</a> <a href="types.html#__svg__SVGNameList__getItem">getItem</a>(unsigned long index);
<a>DOMPoint</a> <a href="types.html#__svg__SVGNameList__insertItemBefore">insertItemBefore</a>(<a>DOMPoint</a> newItem, unsigned long index);
<a>DOMPoint</a> <a href="types.html#__svg__SVGNameList__replaceItem">replaceItem</a>(<a>DOMPoint</a> newItem, unsigned long index);
<a>DOMPoint</a> <a href="types.html#__svg__SVGNameList__removeItem">removeItem</a>(unsigned long index);
<a>DOMPoint</a> <a href="types.html#__svg__SVGNameList__appendItem">appendItem</a>(<a>DOMPoint</a> newItem);
<a href="types.html#__svg__SVGNameList__setter">setter</a> void (unsigned long index, <a>DOMPoint</a> newItem);
<a href="types.html#__svg__SVGNameList__setter">setter</a> undefined (unsigned long index, <a>DOMPoint</a> newItem);
};</pre>

<p>The behavior of all of the interface members of <a>SVGPointList</a> are
Expand Down
8 changes: 4 additions & 4 deletions master/struct.html
Expand Up @@ -2676,7 +2676,7 @@ <h3 id="InterfaceSVGSVGElement">Interface SVGSVGElement</h3>
boolean <a href="struct.html#__svg__SVGSVGElement__checkIntersection">checkIntersection</a>(<a>SVGElement</a> element, <a>DOMRectReadOnly</a> rect);
boolean <a href="struct.html#__svg__SVGSVGElement__checkEnclosure">checkEnclosure</a>(<a>SVGElement</a> element, <a>DOMRectReadOnly</a> rect);

void <a href="struct.html#__svg__SVGSVGElement__deselectAll">deselectAll</a>();
undefined <a href="struct.html#__svg__SVGSVGElement__deselectAll">deselectAll</a>();

<a>SVGNumber</a> <a href="struct.html#__svg__SVGSVGElement__createSVGNumber">createSVGNumber</a>();
<a>SVGLength</a> <a href="struct.html#__svg__SVGSVGElement__createSVGLength">createSVGLength</a>();
Expand All @@ -2692,9 +2692,9 @@ <h3 id="InterfaceSVGSVGElement">Interface SVGSVGElement</h3>
<span class="comment">// Deprecated methods that have no effect when called,</span>
<span class="comment">// but which are kept for compatibility reasons.</span>
unsigned long <a href="struct.html#__svg__SVGSVGElement__suspendRedraw">suspendRedraw</a>(unsigned long maxWaitMilliseconds);
void <a href="struct.html#__svg__SVGSVGElement__unsuspendRedraw">unsuspendRedraw</a>(unsigned long suspendHandleID);
void <a href="struct.html#__svg__SVGSVGElement__unsuspendRedrawAll">unsuspendRedrawAll</a>();
void <a href="struct.html#__svg__SVGSVGElement__forceRedraw">forceRedraw</a>();
undefined <a href="struct.html#__svg__SVGSVGElement__unsuspendRedraw">unsuspendRedraw</a>(unsigned long suspendHandleID);
undefined <a href="struct.html#__svg__SVGSVGElement__unsuspendRedrawAll">unsuspendRedrawAll</a>();
undefined <a href="struct.html#__svg__SVGSVGElement__forceRedraw">forceRedraw</a>();
};

<a>SVGSVGElement</a> includes <a>SVGFitToViewBox</a>;
Expand Down
2 changes: 1 addition & 1 deletion master/text.html
Expand Up @@ -6261,7 +6261,7 @@ <h3 id="InterfaceSVGTextContentElement">Interface SVGTextContentElement</h3>
<a>DOMRect</a> <a href="text.html#__svg__SVGTextContentElement__getExtentOfChar">getExtentOfChar</a>(unsigned long charnum);
float <a href="text.html#__svg__SVGTextContentElement__getRotationOfChar">getRotationOfChar</a>(unsigned long charnum);
long <a href="text.html#__svg__SVGTextContentElement__getCharNumAtPosition">getCharNumAtPosition</a>(optional <a>DOMPointInit</a> point = {});
void <a href="text.html#__svg__SVGTextContentElement__selectSubString">selectSubString</a>(unsigned long charnum, unsigned long nchars);
undefined <a href="text.html#__svg__SVGTextContentElement__selectSubString">selectSubString</a>(unsigned long charnum, unsigned long nchars);
};</pre>

<p>The numeric length adjustment type constants defined on <a>SVGTextContentElement</a>
Expand Down
24 changes: 12 additions & 12 deletions master/types.html
Expand Up @@ -1082,8 +1082,8 @@ <h3 id="InterfaceSVGLength">Interface SVGLength</h3>
attribute float <a href="types.html#__svg__SVGLength__valueInSpecifiedUnits">valueInSpecifiedUnits</a>;
attribute DOMString <a href="types.html#__svg__SVGLength__valueAsString">valueAsString</a>;

void <a href="types.html#__svg__SVGLength__newValueSpecifiedUnits">newValueSpecifiedUnits</a>(unsigned short unitType, float valueInSpecifiedUnits);
void <a href="types.html#__svg__SVGLength__convertToSpecifiedUnits">convertToSpecifiedUnits</a>(unsigned short unitType);
undefined <a href="types.html#__svg__SVGLength__newValueSpecifiedUnits">newValueSpecifiedUnits</a>(unsigned short unitType, float valueInSpecifiedUnits);
undefined <a href="types.html#__svg__SVGLength__convertToSpecifiedUnits">convertToSpecifiedUnits</a>(unsigned short unitType);
};</pre>

<p>The numeric length unit type constants defined on <a>SVGLength</a> are used
Expand Down Expand Up @@ -1440,8 +1440,8 @@ <h3 id="InterfaceSVGAngle">Interface SVGAngle</h3>
attribute float <a href="types.html#__svg__SVGAngle__valueInSpecifiedUnits">valueInSpecifiedUnits</a>;
attribute DOMString <a href="types.html#__svg__SVGAngle__valueAsString">valueAsString</a>;

void <a href="types.html#__svg__SVGAngle__newValueSpecifiedUnits">newValueSpecifiedUnits</a>(unsigned short unitType, float valueInSpecifiedUnits);
void <a href="types.html#__svg__SVGAngle__convertToSpecifiedUnits">convertToSpecifiedUnits</a>(unsigned short unitType);
undefined <a href="types.html#__svg__SVGAngle__newValueSpecifiedUnits">newValueSpecifiedUnits</a>(unsigned short unitType, float valueInSpecifiedUnits);
undefined <a href="types.html#__svg__SVGAngle__convertToSpecifiedUnits">convertToSpecifiedUnits</a>(unsigned short unitType);
};</pre>

<p>The numeric angle unit type constants defined on <a>SVGAngle</a> are used
Expand Down Expand Up @@ -1690,14 +1690,14 @@ <h3 id="ListInterfaces">List interfaces</h3>
readonly attribute unsigned long <a href="types.html#__svg__SVGNameList__length">length</a>;
readonly attribute unsigned long <a href="types.html#__svg__SVGNameList__numberOfItems">numberOfItems</a>;

void <a href="types.html#__svg__SVGNameList__clear">clear</a>();
undefined <a href="types.html#__svg__SVGNameList__clear">clear</a>();
<var>Type</var> <a href="types.html#__svg__SVGNameList__initialize">initialize</a>(<var>Type</var> newItem);
getter <var>Type</var> <a href="types.html#__svg__SVGNameList__getItem">getItem</a>(unsigned long index);
<var>Type</var> <a href="types.html#__svg__SVGNameList__insertItemBefore">insertItemBefore</a>(<var>Type</var> newItem, unsigned long index);
<var>Type</var> <a href="types.html#__svg__SVGNameList__replaceItem">replaceItem</a>(<var>Type</var> newItem, unsigned long index);
<var>Type</var> <a href="types.html#__svg__SVGNameList__removeItem">removeItem</a>(unsigned long index);
<var>Type</var> <a href="types.html#__svg__SVGNameList__appendItem">appendItem</a>(<var>Type</var> newItem);
<a href="#__svg__SVGNameList__setter">setter</a> void (unsigned long index, <var>Type</var> newItem);
<a href="#__svg__SVGNameList__setter">setter</a> undefined (unsigned long index, <var>Type</var> newItem);
};</pre>

<p>where <var>Name</var> is a descriptive name for the list element's
Expand Down Expand Up @@ -2042,14 +2042,14 @@ <h3 id="InterfaceSVGNumberList">Interface SVGNumberList</h3>
readonly attribute unsigned long <a href="types.html#__svg__SVGNameList__length">length</a>;
readonly attribute unsigned long <a href="types.html#__svg__SVGNameList__numberOfItems">numberOfItems</a>;

void <a href="types.html#__svg__SVGNameList__clear">clear</a>();
undefined <a href="types.html#__svg__SVGNameList__clear">clear</a>();
<a>SVGNumber</a> <a href="types.html#__svg__SVGNameList__initialize">initialize</a>(<a>SVGNumber</a> newItem);
getter <a>SVGNumber</a> <a href="types.html#__svg__SVGNameList__getItem">getItem</a>(unsigned long index);
<a>SVGNumber</a> <a href="types.html#__svg__SVGNameList__insertItemBefore">insertItemBefore</a>(<a>SVGNumber</a> newItem, unsigned long index);
<a>SVGNumber</a> <a href="types.html#__svg__SVGNameList__replaceItem">replaceItem</a>(<a>SVGNumber</a> newItem, unsigned long index);
<a>SVGNumber</a> <a href="types.html#__svg__SVGNameList__removeItem">removeItem</a>(unsigned long index);
<a>SVGNumber</a> <a href="types.html#__svg__SVGNameList__appendItem">appendItem</a>(<a>SVGNumber</a> newItem);
<a href="#__svg__SVGNameList__setter">setter</a> void (unsigned long index, <a>SVGNumber</a> newItem);
<a href="#__svg__SVGNameList__setter">setter</a> undefined (unsigned long index, <a>SVGNumber</a> newItem);
};</pre>

<p>The behavior of all of the interface members of <a>SVGNumberList</a> are
Expand All @@ -2068,14 +2068,14 @@ <h3 id="InterfaceSVGLengthList">Interface SVGLengthList</h3>
readonly attribute unsigned long <a href="types.html#__svg__SVGNameList__length">length</a>;
readonly attribute unsigned long <a href="types.html#__svg__SVGNameList__numberOfItems">numberOfItems</a>;

void <a href="types.html#__svg__SVGNameList__clear">clear</a>();
undefined <a href="types.html#__svg__SVGNameList__clear">clear</a>();
<a>SVGLength</a> <a href="types.html#__svg__SVGNameList__initialize">initialize</a>(<a>SVGLength</a> newItem);
getter <a>SVGLength</a> <a href="types.html#__svg__SVGNameList__getItem">getItem</a>(unsigned long index);
<a>SVGLength</a> <a href="types.html#__svg__SVGNameList__insertItemBefore">insertItemBefore</a>(<a>SVGLength</a> newItem, unsigned long index);
<a>SVGLength</a> <a href="types.html#__svg__SVGNameList__replaceItem">replaceItem</a>(<a>SVGLength</a> newItem, unsigned long index);
<a>SVGLength</a> <a href="types.html#__svg__SVGNameList__removeItem">removeItem</a>(unsigned long index);
<a>SVGLength</a> <a href="types.html#__svg__SVGNameList__appendItem">appendItem</a>(<a>SVGLength</a> newItem);
<a href="#__svg__SVGNameList__setter">setter</a> void (unsigned long index, <a>SVGLength</a> newItem);
<a href="#__svg__SVGNameList__setter">setter</a> undefined (unsigned long index, <a>SVGLength</a> newItem);
};</pre>

<p>The behavior of all of the interface members of <a>SVGLengthList</a> are
Expand All @@ -2094,14 +2094,14 @@ <h3 id="InterfaceSVGStringList">Interface SVGStringList</h3>
readonly attribute unsigned long <a href="types.html#__svg__SVGNameList__length">length</a>;
readonly attribute unsigned long <a href="types.html#__svg__SVGNameList__numberOfItems">numberOfItems</a>;

void <a href="types.html#__svg__SVGNameList__clear">clear</a>();
undefined <a href="types.html#__svg__SVGNameList__clear">clear</a>();
DOMString <a href="types.html#__svg__SVGNameList__initialize">initialize</a>(DOMString newItem);
getter DOMString <a href="types.html#__svg__SVGNameList__getItem">getItem</a>(unsigned long index);
DOMString <a href="types.html#__svg__SVGNameList__insertItemBefore">insertItemBefore</a>(DOMString newItem, unsigned long index);
DOMString <a href="types.html#__svg__SVGNameList__replaceItem">replaceItem</a>(DOMString newItem, unsigned long index);
DOMString <a href="types.html#__svg__SVGNameList__removeItem">removeItem</a>(unsigned long index);
DOMString <a href="types.html#__svg__SVGNameList__appendItem">appendItem</a>(DOMString newItem);
<a href="#__svg__SVGNameList__setter">setter</a> void (unsigned long index, DOMString newItem);
<a href="#__svg__SVGNameList__setter">setter</a> undefined (unsigned long index, DOMString newItem);
};</pre>

<p>The behavior of all of the interface members of <a>SVGStringList</a> are
Expand Down

0 comments on commit 4520451

Please sign in to comment.