You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -223,21 +225,26 @@ When the user agent wants to <dfn>draw an image</dfn> of a <<paint()>> for a <va
223
225
224
226
7. Let <var>geometry</var> be a new {{Geometry}} initialized to the width and height of the |fragment|.
225
227
226
-
8. To produce the image output, <a>invoke a method on a class inside a Worklet</a> given "paint" as the <em>methodPropertyKey</em> and [|renderingContext|, |geometry|, |styleMap|] as the <em>arguments</em> with the following options:
227
-
- To <a>create a worklet global scope</a>the user agent will:
228
+
8. Let |workletGlobalScope| be a {{PaintWorkletGlobalScope}} from the list of <b>worklet's
229
+
WorkletGlobalScopes</b> from the paint {{Worklet}}.
228
230
229
-
Return a new {{PaintWorkletGlobalScope}}.
230
-
- To <a>lookup a class instance on a worklet global scope</a> given a |workletGlobalScope|, the user agent will:
231
+
The user agent <em>may</em> also <a>create a WorkletGlobalScope</a> given the paint
232
+
{{Worklet}} and use that.
231
233
232
-
Return the result of looking up |name| on the |workletGlobalScope|'s <b>name to paint instance map</b>.
234
+
Note: The user agent <em>may</em> use any policy for which {{PaintWorkletGlobalScope}} to
235
+
select or create.
233
236
234
-
If an exception is <a>thrown</a> the resulting image output will be an <a>invalid image</a>.
237
+
9. Let |classInstance| be the result of performing a lookup in <b>name to paint instance map</b>
238
+
with |name| as the key.
235
239
236
-
Otherwise the image output should be produced from the |renderingContext| given to the paint method.
0 commit comments