Skip to content

Commit d6feb05

Browse files
periaannevk
authored andcommitted
Annotate OffscreenCanvas attributes with [EnforceRange]
Tests: offscreen-canvas/the-offscreen-canvas/offscreencanvas.constructor.html in wpt. Fixes #3540.
1 parent 3a20936 commit d6feb05

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65043,8 +65043,8 @@ enum <dfn>OffscreenRenderingContextId</dfn> { "<span data-x="offscreen-context-t
6504365043

6504465044
[<span data-x="dom-OffscreenCanvas">Constructor</span>([EnforceRange] unsigned long long width, [EnforceRange] unsigned long long height), Exposed=(Window,Worker), <span>Transferable</span>]
6504565045
interface <dfn>OffscreenCanvas</dfn> : <span>EventTarget</span> {
65046-
attribute unsigned long long <span data-x="dom-OffscreenCanvas-width">width</span>;
65047-
attribute unsigned long long <span data-x="dom-OffscreenCanvas-height">height</span>;
65046+
attribute [EnforceRange] unsigned long long <span data-x="dom-OffscreenCanvas-width">width</span>;
65047+
attribute [EnforceRange] unsigned long long <span data-x="dom-OffscreenCanvas-height">height</span>;
6504865048

6504965049
<span>OffscreenRenderingContext</span>? <span data-x="dom-OffscreenCanvas-getContext">getContext</span>(<span>OffscreenRenderingContextId</span> contextId, optional any options = null);
6505065050
<span>ImageBitmap</span> <span data-x="dom-OffscreenCanvas-transferToImageBitmap">transferToImageBitmap</span>();
@@ -121401,6 +121401,7 @@ INSERT INTERFACES HERE
121401121401
Hermann Donfack Zeufack,
121402121402
中川博貴 (Hiroki Nakagawa), <!-- nhiroki on GitHub -->
121403121403
Hiroshige Hayashizaki,
121404+
Hitoshi Yoshida,
121404121405
Hongchan Choi, <!-- hoch on GitHub -->
121405121406
Hugh Bellamy,
121406121407
Hugh Guiney,

0 commit comments

Comments
 (0)