mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-13 18:37:37 +02:00
This change takes all existing WebIDL files in the repo that had definition lines without four leading spaces, and fixes them so they have four leading spaces. (cherry picked from commit 51528ec6779202747cc3b99d3b77772a124a0b47)
18 lines
678 B
Plaintext
18 lines
678 B
Plaintext
// https://html.spec.whatwg.org/multipage/canvas.html#imagedata
|
|
|
|
enum PredefinedColorSpace { "srgb", "display-p3" };
|
|
|
|
dictionary ImageDataSettings {
|
|
PredefinedColorSpace colorSpace;
|
|
};
|
|
|
|
[Exposed=(Window,Worker), Serializable]
|
|
interface ImageData {
|
|
constructor(unsigned long sw, unsigned long sh, optional ImageDataSettings settings = {});
|
|
constructor(Uint8ClampedArray data, unsigned long sw, optional unsigned long sh, optional ImageDataSettings settings = {});
|
|
readonly attribute unsigned long width;
|
|
readonly attribute unsigned long height;
|
|
readonly attribute Uint8ClampedArray data;
|
|
[FIXME] readonly attribute PredefinedColorSpace colorSpace;
|
|
};
|