@@ -409,6 +409,8 @@ interface LayoutFragment {
409
409
The {{LayoutFragment}} has internal slot(s):
410
410
- <dfn attribute for=LayoutFragment>\[[layoutFragmentRequest]]</dfn> a
411
411
{{LayoutFragmentRequest}} , this is the fragment request which generated this fragment.
412
+ - <dfn attribute for=LayoutFragment>\[[generator]]</dfn> the generator which produced this
413
+ fragment.
412
414
413
415
<hr>
414
416
@@ -501,13 +503,16 @@ If the <a>current layout</a> requires a different {{LayoutFragment/breakToken}}
501
503
{{LayoutChild/layoutNextFragment()}} again with different arguments.
502
504
503
505
<div algorithm>
504
- When the user agent wants to <dfn>create a layout fragment</dfn> given |targetRealm|,
505
- |layoutFragmentRequest|, and |internalFragment|, it <em> must</em> run the following steps:
506
+ When the user agent wants to <dfn>create a layout fragment</dfn> given |generator|,
507
+ |layoutFragmentRequest|, and |internalFragment|, it <em> must</em> run the following steps:
508
+ 1. Let |targetRealm| be |generator|'s <a>Realm</a> .
506
509
507
- 1 . Let |fragment| be a new {{LayoutFragment}} with:
510
+ 2 . Let |fragment| be a new {{LayoutFragment}} with:
508
511
509
512
- The {{[[layoutFragmentRequest]]}} internal slot being |layoutFragmentRequest|.
510
513
514
+ - The {{[[generator]]}} internal slot being |generator|.
515
+
511
516
- {{LayoutFragment/inlineSize}} being |internalFragment|'s <a>inline size</a> relative to
512
517
the <a>current layout's</a> writing mode.
513
518
@@ -525,7 +530,7 @@ When the user agent wants to <dfn>create a layout fragment</dfn> given |targetRe
525
530
{{LayoutFragment/data}} being the result of
526
531
<a>StructuredDeserialize</a> (|clonedData|, |targetRealm|), otherwise null.
527
532
528
- 2 . Return |fragment|.
533
+ 3 . Return |fragment|.
529
534
</div>
530
535
531
536
Intrinsic Sizes {#intrinsic-sizes}
@@ -1873,7 +1878,13 @@ following steps:
1873
1878
{{FragmentResultOptions}} . If an exception is <a>thrown</a> , let |box| fallback to the
1874
1879
<a>flow layout</a> and abort all these steps.
1875
1880
1876
- 15. Create a <a>fragment</a> for |box| with:
1881
+ 15. <a for=list>For each</a> |childFragment| in |fragment|'s
1882
+ {{FragmentResultOptions/childFragments}} , perform the following stubsteps:
1883
+
1884
+ 1. If |childFragment|'s {{[[generator]]}} internal slot is not equal to |layoutGenerator|,
1885
+ then let |box| fallback to the <a>flow layout</a> and abort all these steps.
1886
+
1887
+ 16. Create a <a>fragment</a> for |box| with:
1877
1888
1878
1889
- The <a>inline size</a> set to |fragment|'s {{FragmentResultOptions/inlineSize}} .
1879
1890
@@ -2076,9 +2087,7 @@ When the user agent wants to <dfn>produce a generator result</dfn> given |reques
2076
2087
5. Let |internalFragment| be the result of the user agent producing a <a>fragment</a> based
2077
2088
on |layoutChild|, |childLayoutConstraints|, and |childBreakToken|.
2078
2089
2079
- 6. Let |targetRealm| be |generator|'s <a>Realm</a> .
2080
-
2081
- 7. Return the result of <a>create a layout fragment</a> given |targetRealm|, |request|, and
2090
+ 6. Return the result of <a>create a layout fragment</a> given |generator|, |request|, and
2082
2091
|internalFragment|.
2083
2092
2084
2093
3. Return failure (neither of the above branches was taken).
0 commit comments