Skip to content

Commit 05fc8ae

Browse files
committed
Fix target interfaces in dfn of redraw event
The `redraw` event was defined with a `for="XRLayer"` attribute. That is not really correct, because the even can only fire at some of the `XRCompositionLayer` interfaces. This update adjusts the `for` attribute accordingly, making the definition consistent with the IDL definitions of the related `EventHandler` attributes. (Via w3c/webref#1216)
1 parent 6a896da commit 05fc8ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webxrlayers-1.bs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2012,7 +2012,7 @@ Event Types {#event-types}
20122012

20132013
The user agent MUST provide the following new events. Registration for and firing of the events must follow the usual behavior of DOM4 Events.
20142014

2015-
The user agent MAY fire a <dfn event for="XRLayer">redraw</dfn> event on the {{XRLayer}} object when [=the underlying resources of a layer are lost=] or
2015+
The user agent MAY fire a <dfn event for="XRQuadLayer,XRCylinderLayer,XREquirectLayer,XRCubeLayer">redraw</dfn> event on the {{XRLayer}} object when [=the underlying resources of a layer are lost=] or
20162016
when the [=XR Compositor=] can no longer reproject the layer.
20172017

20182018
The author SHOULD redraw the content of the layer at the next [=XR animation frame=]. The event must be of type {{XRLayerEvent}}.

0 commit comments

Comments
 (0)