From 8fd83b56d5c74411960896233709b83442c6d105 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Thu, 11 Aug 2022 15:50:46 +0100 Subject: LibWeb: Use "unrestricted float/double" where we should in IDL --- Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.idl | 5 ++--- Userland/Libraries/LibWeb/WebGL/Types.idl | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'Userland') 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", -- cgit v1.2.3