@@ -2073,12 +2073,15 @@ <h3 id=the-namedflow-interface><span class=secno>7.1. </span>The NamedFlow
20732073 </ div >
20742074
20752075 < pre class =idl >
2076- interface < a href ="#dom-namedflow "> NamedFlow</ a > {
2076+ interface < a
2077+ href ="#dom-namedflow "> NamedFlow</ a > implements < a
2078+ href ="http://www.w3.org/TR/dom/#interface-eventtarget "> EventTarget</ a > {
20772079 readonly attribute DOMString name;
20782080 readonly attribute boolean < a
20792081 href ="#dom-namedflow-overset "> overset</ a > ;
20802082 sequence<< a
20812083 href ="#region-interface "> Region</ a > > getRegions();
2084+ readonly attribute integer emptyRegionsIndex;
20822085 < a
20832086 href ="http://www.w3.org/TR/dom/#interface-nodelist "> NodeList</ a > getContent();
20842087 sequence<< a
@@ -2100,6 +2103,16 @@ <h3 id=the-namedflow-interface><span class=secno>7.1. </span>The NamedFlow
21002103 href ="#named-flow0 "> named flow</ a > . Note that the returned values is a
21012104 static sequence.
21022105
2106+ < p > The < dfn id =dom-namedflow-unusedregionindex > emptyRegionsIndex</ dfn > is
2107+ the index of the first region in the region sequence with the < a
2108+ href ="#dom-region-regionoverset "> < code > regionOverset</ code > </ a > attribute
2109+ set to < code > empty</ code > . If all regions have the < a
2110+ href ="#dom-region-regionoverset "> < code > regionOverset</ code > </ a > attribute
2111+ set to < code > fit</ code > or < a
2112+ href ="#dom-namedflow-overset "> < code > overset</ code > </ a > , the value for < a
2113+ href ="#dom-namedflow-unusedregionindex "> < code > emptyRegionsIndex</ code > </ a >
2114+ is < code > -1</ code > .
2115+
21032116 < p > The < dfn id =dom-namedflow-getcontent > getContent()</ dfn > methods returns
21042117 an ordered collection of nodes that constitute the named flow. The
21052118 returned list is a static snapshot of the named flow content at the time
@@ -2239,9 +2252,10 @@ <h3 id=region-flow-layout-events><span class=secno>7.3. </span>Region flow
22392252 </ div >
22402253 </ div >
22412254
2242- < p > Region < a href =""> Event Targets</ a > dispatch < code
2255+ < p > < a href ="#dom-namedflow "> < code class =idl > NamedFlow</ code > </ a > objects
2256+ are < a href =""> Event Targets</ a > which dispatch < code
22432257 class =idl > regionLayoutUpdate</ code > events when there is a possible layout
2244- change of their named flow segment.
2258+ change of their named flow segment. Note how the event is asynchronous.
22452259
22462260 < table border =0 cellpadding =2 cellspacing =0 class =event-desc
22472261 summary ="This table contains information about the semantics of the given event type ">
@@ -2255,8 +2269,8 @@ <h3 id=region-flow-layout-events><span class=secno>7.3. </span>Region flow
22552269 < th > Interface
22562270
22572271 < td > < code > < a
2258- href ="http://www.w3.org/TR/DOM-Level-3-Events/#webidl-events-UIEvent "> UIEvent</ a > </ code > (see
2259- < a href ="#DOM-LEVEL-3-EVENTS "
2272+ href ="http://www.w3.org/TR/DOM-Level-3-Events/#webidl-events-UIEvent "> UIEvent</ a > </ code >
2273+ (see < a href ="#DOM-LEVEL-3-EVENTS "
22602274 rel =biblioentry > [DOM-LEVEL-3-EVENTS]<!--{{!DOM-LEVEL-3-EVENTS}}--> </ a > )
22612275
22622276 < tr class ="assert must ">
@@ -2272,7 +2286,7 @@ <h3 id=region-flow-layout-events><span class=secno>7.3. </span>Region flow
22722286 < tr class ="assert must ">
22732287 < th > Target
22742288
2275- < td > < code > Element </ code >
2289+ < td > < a href =" #dom-namedflow " > < code class = idl > NamedFlow </ code > </ a >
22762290
22772291 < tr class ="assert must ">
22782292 < th > Cancelable
@@ -2289,7 +2303,8 @@ <h3 id=region-flow-layout-events><span class=secno>7.3. </span>Region flow
22892303
22902304 < td >
22912305 < ul >
2292- < li > < code class =attribute-name > Event.target</ code > : region whose
2306+ < li > < code class =attribute-name > Event.target</ code > : < a
2307+ href ="#dom-namedflow "> < code class =idl > NamedFlow</ code > </ a > whose
22932308 layout may have changed
22942309 </ ul >
22952310 </ table >
@@ -2439,6 +2454,13 @@ <h3 id="changes_from_June_09_2011"><span class=secno>11.1. </span>Changes
24392454 href ="https://www.w3.org/Bugs/Public/show_bug.cgi?id=16286 "> Issue
24402455 16286</ a > )
24412456 </ ul >
2457+
2458+ < li > Modified region layout event to be dispatched on < a
2459+ href ="#dom-namedflow "> < code > NamedFlow</ code > </ a > instead of region as
2460+ before. Was requested by < a
2461+ href ="https://www.w3.org/Bugs/Public/show_bug.cgi?id=15938 "> Issue
2462+ 15938</ a > and required in the general effort to have the DOM APIs work
2463+ with non-element regions.
24422464 </ ul >
24432465
24442466 < h3 id ="changes_from_June_09_2011 "> < span class =secno > 11.2. </ span > Changes
@@ -2936,6 +2958,9 @@ <h2 class=no-num id=index>Index</h2>
29362958 < li > current-region, < a href ="#current-region "
29372959 title =current-region > < strong > 2.3.</ strong > </ a >
29382960
2961+ < li > emptyRegionsIndex, < a href ="#dom-namedflow-unusedregionindex "
2962+ title =emptyRegionsIndex > < strong > 7.1.</ strong > </ a >
2963+
29392964 < li > flowFrom, < a href ="#dom-region-flowfrom "
29402965 title =flowFrom > < strong > 7.2.</ strong > </ a >
29412966
0 commit comments