1
Fork 0
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:
Sam Atkins 2022-08-12 14:00:00 +01:00 committed by Andreas Kling
parent 7b61d16262
commit 08e6071ebb
7 changed files with 154 additions and 93 deletions

View 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();
};