From f8b9aba8214b9c1f6ccd5852879d6a1cbb16a304 Mon Sep 17 00:00:00 2001 From: janekptacijarabaci Date: Sun, 15 Apr 2018 06:51:24 +0200 Subject: moebius#106: SVG - CanvasImageSource - allow using an SVGImageElement as a CanvasImageSource --- dom/webidl/CanvasRenderingContext2D.webidl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dom/webidl/CanvasRenderingContext2D.webidl') diff --git a/dom/webidl/CanvasRenderingContext2D.webidl b/dom/webidl/CanvasRenderingContext2D.webidl index 38a30f9e3..1c5564215 100644 --- a/dom/webidl/CanvasRenderingContext2D.webidl +++ b/dom/webidl/CanvasRenderingContext2D.webidl @@ -27,6 +27,9 @@ dictionary HitRegionOptions { }; typedef (HTMLImageElement or + SVGImageElement) HTMLOrSVGImageElement; + +typedef (HTMLOrSVGImageElement or HTMLCanvasElement or HTMLVideoElement or ImageBitmap) CanvasImageSource; -- cgit v1.2.3