From d6feb0566471d7fe75e2a7b968ad116cb8b9e353 Mon Sep 17 00:00:00 2001 From: peria Date: Thu, 30 Aug 2018 17:35:48 +0900 Subject: [PATCH] Annotate OffscreenCanvas attributes with [EnforceRange] Tests: offscreen-canvas/the-offscreen-canvas/offscreencanvas.constructor.html in wpt. Fixes #3540. --- source | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source b/source index 31fd23c1767..6c33ec31fec 100644 --- a/source +++ b/source @@ -65043,8 +65043,8 @@ enum OffscreenRenderingContextId { "Constructor([EnforceRange] unsigned long long width, [EnforceRange] unsigned long long height), Exposed=(Window,Worker), Transferable] interface OffscreenCanvas : EventTarget { - attribute unsigned long long width; - attribute unsigned long long height; + attribute [EnforceRange] unsigned long long width; + attribute [EnforceRange] unsigned long long height; OffscreenRenderingContext? getContext(OffscreenRenderingContextId contextId, optional any options = null); ImageBitmap transferToImageBitmap(); @@ -121401,6 +121401,7 @@ INSERT INTERFACES HERE Hermann Donfack Zeufack, 中川博貴 (Hiroki Nakagawa), Hiroshige Hayashizaki, + Hitoshi Yoshida, Hongchan Choi, Hugh Bellamy, Hugh Guiney,