mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:18:12 +00:00
LibWeb: Replace IDL 'void' return type with 'undefined'
From the Web IDL spec: https://heycam.github.io/webidl/#idl-undefined [...] undefined constant values in IDL are represented with the `undefined` token. [...] Note: This value was previously spelled `void`, and more limited in how it was allowed to be used.
This commit is contained in:
parent
c1dfb2d883
commit
5d77a19af5
6 changed files with 23 additions and 23 deletions
|
@ -1,28 +1,28 @@
|
|||
interface CanvasRenderingContext2D {
|
||||
|
||||
void fillRect(double x, double y, double w, double h);
|
||||
void strokeRect(double x, double y, double w, double h);
|
||||
undefined fillRect(double x, double y, double w, double h);
|
||||
undefined strokeRect(double x, double y, double w, double h);
|
||||
|
||||
void scale(double x, double y);
|
||||
void translate(double x, double y);
|
||||
void rotate(double radians);
|
||||
undefined scale(double x, double y);
|
||||
undefined translate(double x, double y);
|
||||
undefined rotate(double radians);
|
||||
|
||||
void beginPath();
|
||||
void closePath();
|
||||
void fill(DOMString fillRule);
|
||||
void stroke();
|
||||
void moveTo(double x, double y);
|
||||
void lineTo(double x, double y);
|
||||
void quadraticCurveTo(double cpx, double cpy, double x, double y);
|
||||
undefined beginPath();
|
||||
undefined closePath();
|
||||
undefined fill(DOMString fillRule);
|
||||
undefined stroke();
|
||||
undefined moveTo(double x, double y);
|
||||
undefined lineTo(double x, double y);
|
||||
undefined quadraticCurveTo(double cpx, double cpy, double x, double y);
|
||||
|
||||
void drawImage(HTMLImageElement image, double dx, double dy);
|
||||
undefined drawImage(HTMLImageElement image, double dx, double dy);
|
||||
|
||||
attribute DOMString fillStyle;
|
||||
attribute DOMString strokeStyle;
|
||||
attribute double lineWidth;
|
||||
|
||||
ImageData createImageData(double sw, double sh);
|
||||
void putImageData(ImageData imagedata, double dx, double dy);
|
||||
undefined putImageData(ImageData imagedata, double dx, double dy);
|
||||
|
||||
readonly attribute HTMLCanvasElement canvas;
|
||||
|
||||
|
|
|
@ -5,6 +5,6 @@ interface HTMLFormElement : HTMLElement {
|
|||
[Reflect=accept-charset] attribute DOMString acceptCharset;
|
||||
[Reflect=novalidate] attribute boolean noValidate;
|
||||
|
||||
void submit();
|
||||
undefined submit();
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue