Skip to content

Commit 98690e2

Browse files
committed
[css-layout-api] Reorder getting of intrinsicSizes and layout in registerLayout
1 parent 136f75d commit 98690e2

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

css-layout-api/Overview.bs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,23 +1178,23 @@ is called, the user agent <em>must</em> run the following steps:
11781178
14. If the result of <a>Type</a>(|prototype|) is not Object, <a>throw</a> a <a>TypeError</a> and
11791179
abort all these steps.
11801180

1181-
15. Let |layout| be the result of <a>Get</a>(|prototype|, <code>"layout"</code>).
1182-
1183-
16. If the result of <a>IsCallable</a>(|layout|) is false, <a>throw</a> a <a>TypeError</a> and
1184-
abort all these steps.
1185-
1186-
17. If |layout|'s <code>\[[FunctionKind]]</code> internal slot is not <code>"generator"</code>,
1187-
<a>throw</a> a <a>TypeError</a> and abort all these steps.
1188-
1189-
18. Let |intrinsicSizes| be the result of <a>Get</a>(|prototype|,
1181+
15. Let |intrinsicSizes| be the result of <a>Get</a>(|prototype|,
11901182
<code>"intrinsicSizes"</code>).
11911183

1192-
19. If the result of <a>IsCallable</a>(|intrinsicSizes|) is false, <a>throw</a> a
1184+
16. If the result of <a>IsCallable</a>(|intrinsicSizes|) is false, <a>throw</a> a
11931185
<a>TypeError</a> and abort all these steps.
11941186

1195-
20. If |intrinsicSizes|'s <code>\[[FunctionKind]]</code> internal slot is not
1187+
17. If |intrinsicSizes|'s <code>\[[FunctionKind]]</code> internal slot is not
11961188
<code>"generator"</code>, <a>throw</a> a <a>TypeError</a> and abort all these steps.
11971189

1190+
18. Let |layout| be the result of <a>Get</a>(|prototype|, <code>"layout"</code>).
1191+
1192+
19. If the result of <a>IsCallable</a>(|layout|) is false, <a>throw</a> a <a>TypeError</a> and
1193+
abort all these steps.
1194+
1195+
20. If |layout|'s <code>\[[FunctionKind]]</code> internal slot is not <code>"generator"</code>,
1196+
<a>throw</a> a <a>TypeError</a> and abort all these steps.
1197+
11981198
21. Let |definition| be a new <a>layout definition</a> with:
11991199

12001200
- <a>class constructor</a> being |layoutCtor|.

0 commit comments

Comments
 (0)