Skip to content

Commit bff5738

Browse files
committed
[css-paint-api] Remove 'named arguments' from paint spec.
1 parent 1688f32 commit bff5738

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

css-paint-api/Overview.bs

+12-12
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,10 @@ called, the user agent <em>must</em> run the following steps:
154154
2. If the |name| exists as a key in the <a>paint name to paint image definition map</a>,
155155
<a>throw</a> a <a>NotSupportedError</a> and abort all these steps.
156156

157-
3. Let |inputProperties| be the result of <a>Get</a>(O=|paintCtor|, P="inputProperties").
157+
3. Let |inputProperties| be the result of <a>Get</a>(|paintCtor|, "inputProperties").
158158

159-
4. If |inputProperties| is not undefined, and the result of <a>IsArray</a>(argument=
160-
|inputProperties|) is false, <a>throw</a> a <a>TypeError</a> and abort all these steps.
159+
4. If |inputProperties| is not undefined, and the result of <a>IsArray</a>(|inputProperties|) is
160+
false, <a>throw</a> a <a>TypeError</a> and abort all these steps.
161161

162162
If |inputProperties| is undefined, let |inputProperties| be a new empty array.
163163

@@ -175,16 +175,16 @@ called, the user agent <em>must</em> run the following steps:
175175
can also contains currently invalid properties for the user agent. For example
176176
<code>margin-bikeshed-property</code>.
177177

178-
5. If the result of <a>IsConstructor</a>(argument=|paintCtor|) is false, <a>throw</a> a
179-
<a>TypeError</a> and abort all these steps.
178+
5. If the result of <a>IsConstructor</a>(|paintCtor|) is false, <a>throw</a> a <a>TypeError</a>
179+
and abort all these steps.
180180

181-
6. Let |prototype| be the result of <a>Get</a>(O=|paintCtor|, P="prototype").
181+
6. Let |prototype| be the result of <a>Get</a>(|paintCtor|, "prototype").
182182

183-
7. If the result of <a>Type</a>(argument=|prototype|) is not Object, <a>throw</a> a
184-
<a>TypeError</a> and abort all these steps.
183+
7. If the result of <a>Type</a>(|prototype|) is not Object, <a>throw</a> a <a>TypeError</a> and
184+
abort all these steps.
185185

186-
8. If the result of <a>IsCallable</a>(argument=<a>Get</a>(O=|prototype|, P="paint")) is false,
187-
<a>throw</a> a <a>TypeError</a> and abort all these steps.
186+
8. If the result of <a>IsCallable</a>(<a>Get</a>(|prototype|, "paint")) is false, <a>throw</a> a
187+
<a>TypeError</a> and abort all these steps.
188188

189189
9. Let |definition| be a new <a>paint image definition</a> with:
190190

@@ -397,8 +397,8 @@ following steps:
397397
10. Let |paintSize| be a new {{PaintSize}} initialized to the width and height defined by
398398
|concreteObjectSize|.
399399

400-
11. Perform <a>Invoke</a>(O=|paintInstance|, P="paint", Arguments=[|renderingContext|,
401-
|paintSize|, |styleMap|).
400+
11. Perform <a>Invoke</a>(|paintInstance|, "paint", [|renderingContext|, |paintSize|,
401+
|styleMap|).
402402

403403
12. The image output is to be produced from the |renderingContext| given to the method.
404404

0 commit comments

Comments
 (0)