1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:17:35 +00:00

LibWeb: Extract CanvasRect class from CRC2D

This one requires drawing to the canvas, so it doesn't make so much
sense to move the implementation over.
This commit is contained in:
Sam Atkins 2022-08-12 16:06:32 +01:00 committed by Andreas Kling
parent aa3cb8b425
commit c0494988ed
4 changed files with 38 additions and 8 deletions

View file

@ -4,6 +4,7 @@
#import <HTML/TextMetrics.idl>
#import <HTML/Canvas/CanvasFillStrokeStyles.idl>
#import <HTML/Canvas/CanvasPath.idl>
#import <HTML/Canvas/CanvasRect.idl>
#import <HTML/Canvas/CanvasState.idl>
#import <HTML/Canvas/CanvasTransform.idl>
#import <HTML/Path2D.idl>
@ -12,10 +13,6 @@
[Exposed=Window]
interface CanvasRenderingContext2D {
undefined fillRect(double x, double y, double w, double h);
undefined strokeRect(double x, double y, double w, double h);
undefined clearRect(double x, double y, double w, double h);
undefined beginPath();
// FIXME: `DOMString` should be `CanvasFillRule`
undefined fill(optional DOMString fillRule = "nonzero");
@ -51,4 +48,5 @@ interface CanvasRenderingContext2D {
CanvasRenderingContext2D includes CanvasState;
CanvasRenderingContext2D includes CanvasTransform;
CanvasRenderingContext2D includes CanvasFillStrokeStyles;
CanvasRenderingContext2D includes CanvasRect;
CanvasRenderingContext2D includes CanvasPath;