Skip to content

Commit

Permalink
Fix target interfaces in dfn of redraw event
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
tidoust committed Apr 22, 2024
1 parent 6a896da commit 05fc8ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webxrlayers-1.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2012,7 +2012,7 @@ Event Types {#event-types}

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

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
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
when the [=XR Compositor=] can no longer reproject the layer.

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

0 comments on commit 05fc8ae

Please sign in to comment.