Skip to content

Commit e422068

Browse files
committed
[worklets][css-paint-api] Correct exposed and global annotations.
1 parent bba98fa commit e422068

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

css-paint-api/Overview.bs

+3-2
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ The {{PaintWorkletGlobalScope}} is the global execution context of the {{paintWo
9797
<pre class='idl'>
9898
callback VoidFunction = void ();
9999

100+
[Global=(Worklet,PaintWorklet),Exposed=PaintWorklet]
100101
interface PaintWorkletGlobalScope : WorkletGlobalScope {
101102
void registerPaint(DOMString name, VoidFunction paintCtor);
102103
};
@@ -185,7 +186,7 @@ The 2D rendering context {#2d-rendering-context}
185186
================================================
186187

187188
<pre class='idl'>
188-
[Exposed=Worklet]
189+
[Exposed=PaintWorklet]
189190
interface PaintRenderingContext2D {
190191
};
191192
PaintRenderingContext2D implements CanvasState;
@@ -265,7 +266,7 @@ The {{Geometry}} object represents the geometry of the image that the author sho
265266
the <a>concrete object size</a> given by the user agent.
266267

267268
<pre class='idl'>
268-
[Exposed=Worklet]
269+
[Exposed=PaintWorklet]
269270
interface Geometry {
270271
readonly attribute double width;
271272
readonly attribute double height;

worklets/Overview.bs

+2
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ The {{WorkletGlobalScope}} object provides a <dfn>worklet global scope</dfn> whi
130130
global execution context of a {{Worklet}}.
131131

132132
<pre class='idl'>
133+
[Exposed=Worklet]
133134
interface WorkletGlobalScope {
134135
attribute Console console;
135136
};
@@ -340,6 +341,7 @@ partial interface Window {
340341
<pre class='idl'>
341342
callback Function = any (any... arguments);
342343

344+
[Global=(Worklet,FakeWorklet),Exposed=FakeWorklet]
343345
interface FakeWorkletGlobalScope : WorkletGlobalScope {
344346
void registerAnArbitaryClass(DOMString type, Function classConstructor);
345347
};

0 commit comments

Comments
 (0)