diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-08-11 15:50:46 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-08-14 11:30:40 +0200 |
commit | 8fd83b56d5c74411960896233709b83442c6d105 (patch) | |
tree | 29f4580dc4441d094e1bd524482a78a0472d1868 /Userland | |
parent | 504d221e4a392f9902bc740e337df18b425ee38d (diff) | |
download | serenity-8fd83b56d5c74411960896233709b83442c6d105.zip |
LibWeb: Use "unrestricted float/double" where we should in IDL
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.idl | 5 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/WebGL/Types.idl | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.idl b/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.idl index 20ae8750e8..4d17bf1d15 100644 --- a/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.idl +++ b/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.idl @@ -55,9 +55,8 @@ interface CanvasRenderingContext2D { CanvasGradient createLinearGradient(double x0, double y0, double x1, double y1); CanvasGradient createConicGradient(double startAngle, double x, double y); - // FIXME: All these `double`s should be `unrestricted double` - undefined transform(double a, double b, double c, double d, double e, double f); - undefined setTransform(double a, double b, double c, double d, double e, double f); + undefined transform(unrestricted double a, unrestricted double b, unrestricted double c, unrestricted double d, unrestricted double e, unrestricted double f); + undefined setTransform(unrestricted double a, unrestricted double b, unrestricted double c, unrestricted double d, unrestricted double e, unrestricted double f); undefined resetTransform(); // undefined clip(optional CanvasFillRule fillRule = "nonzero"); diff --git a/Userland/Libraries/LibWeb/WebGL/Types.idl b/Userland/Libraries/LibWeb/WebGL/Types.idl index cd1522b87d..dce05acb46 100644 --- a/Userland/Libraries/LibWeb/WebGL/Types.idl +++ b/Userland/Libraries/LibWeb/WebGL/Types.idl @@ -4,9 +4,8 @@ typedef unsigned long GLbitfield; typedef long GLint; typedef long GLsizei; -// FIXME: These should be "unrestricted float" -typedef float GLfloat; -typedef float GLclampf; +typedef unrestricted float GLfloat; +typedef unrestricted float GLclampf; enum WebGLPowerPreference { "default", |