Skip to content

Commit

Permalink
Annotate OffscreenCanvas attributes with [EnforceRange]
Browse files Browse the repository at this point in the history
Tests: offscreen-canvas/the-offscreen-canvas/offscreencanvas.constructor.html in wpt.

Fixes whatwg#3540.
  • Loading branch information
peria authored and annevk committed Aug 30, 2018
1 parent 3a20936 commit d6feb05
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -65043,8 +65043,8 @@ enum <dfn>OffscreenRenderingContextId</dfn> { "<span data-x="offscreen-context-t

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

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

0 comments on commit d6feb05

Please sign in to comment.