aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/CanvasRenderingContext2D.webidl
diff options
context:
space:
mode:
authorpylbrecht <palbrecht@mailbox.org>2020-02-07 21:56:58 +0100
committerpylbrecht <palbrecht@mailbox.org>2020-02-10 14:23:38 +0100
commit481ef4616709840db0145f3bc4003f74f0ff126d (patch)
tree49ba30db14c96ad7cbf9a0b2e623d82101c3c095 /components/script/dom/webidls/CanvasRenderingContext2D.webidl
parent423b86e439dc2bff1a9860511f3ace8b4778d85e (diff)
downloadservo-481ef4616709840db0145f3bc4003f74f0ff126d.tar.gz
servo-481ef4616709840db0145f3bc4003f74f0ff126d.zip
Make create_pattern() return None for incomplete images
Diffstat (limited to 'components/script/dom/webidls/CanvasRenderingContext2D.webidl')
-rw-r--r--components/script/dom/webidls/CanvasRenderingContext2D.webidl2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/webidls/CanvasRenderingContext2D.webidl b/components/script/dom/webidls/CanvasRenderingContext2D.webidl
index 52e532e3a8b..bcc1b56396c 100644
--- a/components/script/dom/webidls/CanvasRenderingContext2D.webidl
+++ b/components/script/dom/webidls/CanvasRenderingContext2D.webidl
@@ -93,7 +93,7 @@ interface mixin CanvasFillStrokeStyles {
[Throws]
CanvasGradient createRadialGradient(double x0, double y0, double r0, double x1, double y1, double r1);
[Throws]
- CanvasPattern createPattern(CanvasImageSource image, [TreatNullAs=EmptyString] DOMString repetition);
+ CanvasPattern? createPattern(CanvasImageSource image, [TreatNullAs=EmptyString] DOMString repetition);
};
[Exposed=(PaintWorklet, Window, Worker)]