LibWeb: Split PredefinedColorSpace into its own IDL file

This matches the structure of the HTML spec where this is split out.
This commit is contained in:
Shannon Booth 2026-04-25 22:23:14 +02:00 committed by Andreas Kling
parent 040d7c38cf
commit 566746c276
3 changed files with 3 additions and 2 deletions

View file

@ -1,7 +1,5 @@
// https://html.spec.whatwg.org/multipage/canvas.html#imagedata
enum PredefinedColorSpace { "srgb", "display-p3" };
dictionary ImageDataSettings {
PredefinedColorSpace colorSpace;
};

View file

@ -0,0 +1,2 @@
// https://html.spec.whatwg.org/multipage/canvas.html#predefinedcolorspace
enum PredefinedColorSpace { "srgb", "srgb-linear", "display-p3", "display-p3-linear" };

View file

@ -616,6 +616,7 @@ libweb_support_idl(HTML/NavigatorDeviceMemory)
libweb_support_idl(HTML/NavigatorID)
libweb_support_idl(HTML/NavigatorLanguage)
libweb_support_idl(HTML/NavigatorOnLine)
libweb_support_idl(HTML/PredefinedColorSpace)
libweb_support_idl(HTML/PopoverTargetAttributes)
libweb_support_idl(HTML/Scripting/Fetching)
libweb_support_idl(HTML/UniversalGlobalScope)