Skip to content

Commit c5d793c

Browse files
committed
LibWeb: Split out CanvasSettings IDL interface mixin
Corresponds to whatwg/html#10904 However, we don't implement most of what is changed in that PR, so this simply moves the FIXME'd getContextAttributes() method from one place to another.
1 parent 3e4b105 commit c5d793c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Libraries/LibWeb/HTML/CanvasRenderingContext2D.idl

+7-2
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,9 @@ enum CanvasTextBaseline { "top", "hanging", "middle", "alphabetic", "ideographic
3939
[Exposed=Window]
4040
interface CanvasRenderingContext2D {
4141
[ImplementedAs=canvas_for_binding] readonly attribute HTMLCanvasElement canvas;
42-
43-
[FIXME] CanvasRenderingContext2DSettings getContextAttributes();
4442
};
4543

44+
CanvasRenderingContext2D includes CanvasSettings;
4645
CanvasRenderingContext2D includes CanvasState;
4746
CanvasRenderingContext2D includes CanvasTransform;
4847
CanvasRenderingContext2D includes CanvasCompositing;
@@ -59,3 +58,9 @@ CanvasRenderingContext2D includes CanvasImageData;
5958
CanvasRenderingContext2D includes CanvasPathDrawingStyles;
6059
CanvasRenderingContext2D includes CanvasTextDrawingStyles;
6160
CanvasRenderingContext2D includes CanvasPath;
61+
62+
// https://html.spec.whatwg.org/multipage/canvas.html#canvassettings
63+
interface mixin CanvasSettings {
64+
// settings
65+
[FIXME] CanvasRenderingContext2DSettings getContextAttributes();
66+
};

0 commit comments

Comments
 (0)