mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:27:46 +00:00
LibWeb: Extract CanvasState class from CRC2D
As with CanvasPath, this is to better match the spec IDL.
This commit is contained in:
parent
7b61d16262
commit
08e6071ebb
7 changed files with 154 additions and 93 deletions
7
Userland/Libraries/LibWeb/HTML/Canvas/CanvasState.idl
Normal file
7
Userland/Libraries/LibWeb/HTML/Canvas/CanvasState.idl
Normal file
|
@ -0,0 +1,7 @@
|
|||
// https://html.spec.whatwg.org/multipage/canvas.html#canvasstate
|
||||
interface mixin CanvasState {
|
||||
undefined save();
|
||||
undefined restore();
|
||||
undefined reset();
|
||||
boolean isContextLost();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue