From 4c0937225ea064e528ac4a4d140c4b75cdbf51b1 Mon Sep 17 00:00:00 2001 From: Idan Horowitz Date: Wed, 14 Apr 2021 23:25:23 +0300 Subject: [PATCH] LibWeb: Make CanvasRenderingContext2D::fill's fillRule argument optional As defined by the specification (and used by the website i am testing): interface mixin CanvasDrawPath { undefined fill(optional CanvasFillRule fillRule = "nonzero"); } --- Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.idl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.idl b/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.idl index 97f0462601..4f0663b186 100644 --- a/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.idl +++ b/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.idl @@ -10,7 +10,7 @@ interface CanvasRenderingContext2D { undefined beginPath(); undefined closePath(); - undefined fill(DOMString fillRule); + undefined fill(optional DOMString fillRule = "nonzero"); undefined stroke(); undefined moveTo(double x, double y); undefined lineTo(double x, double y);