@@ -2016,6 +2016,9 @@ When the user agent wants to <dfn>run a generator</dfn> given |generator|, and |
2016
2016
9. Let |result| be the result of <a>produce a generator result</a> given |request|,
2017
2017
|generator|, |generatorType|.
2018
2018
2019
+ If <a>produce a generator result</a> returns failure, return failure, and abort all
2020
+ these steps.
2021
+
2019
2022
10. Set |nextValue| to be |result|.
2020
2023
2021
2024
11. Continue.
@@ -2040,10 +2043,16 @@ When the user agent wants to <dfn>produce a generator result</dfn> given |reques
2040
2043
1. Let |layoutChild| be the result of looking up the internal slot
2041
2044
{{IntrinsicSizesRequest/[[layoutChild]]}} on |request|.
2042
2045
2043
- 2. Let |internalIntrinsicSizes| be the result of the user agent calculating the <b> border
2046
+ 2. If |layoutChild| is <em> not</em> attached to the <a>box tree</a> , return failure and
2047
+ abort all these steps.
2048
+
2049
+ Note: The author may hold onto a {{LayoutChild}} from a previous invocation. It is
2050
+ assumed that a box is only ever attached to the box-tree once, and not re-used.
2051
+
2052
+ 3. Let |internalIntrinsicSizes| be the result of the user agent calculating the <b> border
2044
2053
box</b> min/max content contribution of |layoutChild|.
2045
2054
2046
- 3 . Return the result of <a>create an intrinsic sizes object</a> given |request|, and
2055
+ 4 . Return the result of <a>create an intrinsic sizes object</a> given |request|, and
2047
2056
|internalIntrinsicSizes|.
2048
2057
2049
2058
2. If |request| is a {{LayoutFragmentRequest}} and |generatorType| is <code> "layout"</code>
@@ -2052,18 +2061,24 @@ When the user agent wants to <dfn>produce a generator result</dfn> given |reques
2052
2061
1. Let |layoutChild| be result of looking up the internal slot
2053
2062
{{LayoutFragmentRequest/[[layoutChild]]}} on |request|.
2054
2063
2055
- 2. Let |childLayoutConstraints| be the result of looking up the internal slot
2064
+ 2. If |layoutChild| is <em> not</em> attached to the <a>box tree</a> , return failure and
2065
+ abort all these steps.
2066
+
2067
+ Note: The author may hold onto a {{LayoutChild}} from a previous invocation. It is
2068
+ assumed that a box is only ever attached to the box-tree once, and not re-used.
2069
+
2070
+ 3. Let |childLayoutConstraints| be the result of looking up the internal slot
2056
2071
{{LayoutFragmentRequest/[[layoutConstraints]]}} on |request|.
2057
2072
2058
- 3 . Let |childBreakToken| be the result of looking up the internal slot
2073
+ 4 . Let |childBreakToken| be the result of looking up the internal slot
2059
2074
{{LayoutFragmentRequest/[[breakToken]]}} on |request|.
2060
2075
2061
- 4 . Let |internalFragment| be the result of the user agent producing a <a>fragment</a> based
2076
+ 5 . Let |internalFragment| be the result of the user agent producing a <a>fragment</a> based
2062
2077
on |layoutChild|, |childLayoutConstraints|, and |childBreakToken|.
2063
2078
2064
- 5 . Let |targetRealm| be |generator|'s <a>Realm</a> .
2079
+ 6 . Let |targetRealm| be |generator|'s <a>Realm</a> .
2065
2080
2066
- 6 . Return the result of <a>create a layout fragment</a> given |targetRealm|, |request|, and
2081
+ 7 . Return the result of <a>create a layout fragment</a> given |targetRealm|, |request|, and
2067
2082
|internalFragment|.
2068
2083
2069
2084
3. Return failure (neither of the above branches was taken).
0 commit comments