From 0a805fe7a5e32fed50731fb340fa318790528809 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Mon, 10 Feb 2025 17:12:50 +0000 Subject: [PATCH] LibWeb/HTML: Add CanvasColorType We don't implement the affected algorithms, and so the only change to apply here is adding the dictionary member to IDL. Corresponds to https://github.com/whatwg/html/commit/a5853ca8fa828ee9c13907146ee5fd118da56df2 --- Libraries/LibWeb/HTML/CanvasRenderingContext2D.idl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Libraries/LibWeb/HTML/CanvasRenderingContext2D.idl b/Libraries/LibWeb/HTML/CanvasRenderingContext2D.idl index 2c5005d4be3..54cb2b4663e 100644 --- a/Libraries/LibWeb/HTML/CanvasRenderingContext2D.idl +++ b/Libraries/LibWeb/HTML/CanvasRenderingContext2D.idl @@ -17,11 +17,13 @@ #import enum PredefinedColorSpace { "srgb", "display-p3" }; +enum CanvasColorType { "unorm8", "float16" }; dictionary CanvasRenderingContext2DSettings { boolean alpha = true; boolean desynchronized = false; PredefinedColorSpace colorSpace = "srgb"; + CanvasColorType colorType = "unorm8"; boolean willReadFrequently = false; };