diff --git a/source b/source index 692090733c0..de90beb9ec5 100644 --- a/source +++ b/source @@ -32202,8 +32202,9 @@ was an English <a href="/wiki/Music_hall">music hall</a> singer, ...
When obtaining images immediately, the user agent must synchronously update the image
- data of the img element, with the restart animation flag set if so
- stated, whenever that element is created or has experienced relevant mutations.
img element, with restartAnimation set to true if so
+ stated, and with maybeOmitEvents set to true if so stated, whenever that element is
+ created or has experienced relevant mutations.
width, or sizes attributes are set, changed, or removed.
- The element's src attribute is set to the same value as the previous value.
- This must set the restart animation flag for the update the image data algorithm.
The element's src attribute is set to the same value as
+ the previous value. This must set restartAnimation to true for the update the
+ image data algorithm.
The element's crossorigin attribute's state is changed.
The element's adopting steps are run.
If the element allows auto-sizes: the element starts or stops being - rendered, or its concrete object size width changes. This must set the - maybe omit events flag for the update the image data algorithm.
When the user agent is to update the image data of an img element,
- optionally with the restart animations flag set, optionally with the maybe omit
- events flag set, it must run the following steps:
When the user agent is to update the image data given an img element
+ img, optionally a boolean restartAnimations (default false), optionally a
+ boolean maybeOmitEvents (default false), it must run the following steps:
If the element's node document is not fully active, then:
+If img's node document is not fully active, then run + these steps in parallel:
Continue running this algorithm in parallel.
Wait until the element's node document is fully
+ Wait until img's node document is fully
active. If another instance of this algorithm for this If another instance of this algorithm for img was started after this instance
(even if it aborted and is no longer running), then return. Queue a microtask to continue this algorithm. Queue an element task on the DOM manipulation task source
+ given img element to run the internal update the image data steps given
+ img, restartAnimations, and maybeOmitEvents.img element was started after this instance
+
Otherwise, run the internal update the image data steps given img, + restartAnimations, and maybeOmitEvents.
The internal update the image data steps given an img element
+ img, a boolean restartAnimations, and a boolean maybeOmitEvents
+ are as follows:
If the user agent cannot support images, or its support for images has been disabled, then abort the image request for the current request and the pending - request, set the current request's state to - unavailable, set the pending request to null, and + request, set the current request's state + to unavailable, set the pending request to null, and return.
Let previousURL be the current request's music hall</a> singer, ...img element and the following steps:
If restart animation is set, then restart the
+ If restartAnimation is true, then restart the
animation. Set the current request's current URL to
urlString. If maybe omit events is not set or previousURL is not equal to
+ If maybeOmitEvents is false or previousURL is not equal to
urlString, then fire an event named
load at the img element.
Abort the update the image data algorithm.
Return.
srcset or
picture; and
- maybe omit events is not set or previousURL is not the empty +
maybeOmitEvents is false or previousURL is not the empty string,
Change the current request's current URL to selected source.
-If maybe omit events is not set or previousURL is not equal to
- selected source, then fire an event
- named error at the img element.
If maybeOmitEvents is false or previousURL is not equal to
+ selected source, then fire an event named
+ error at the img element.
img element
- to restart the animation if restart animation is set, and return.
+ to restart the animation if restartAnimation is true, and
+ return.
Abort the image request for the pending request.
If maybe omit events is not set or previousURL is not equal to
- urlString, then queue an element task on the DOM manipulation task source
- given the img element to fire an event
- named load at the img element.
If maybeOmitEvents is false or previousURL is not equal to
+ urlString, then queue an element task on the DOM manipulation
+ task source given the img element to fire an event named load
+ at the img element.
Abort the image request for image request.
If maybe omit events is not set or previousURL is not equal to +
If maybeOmitEvents is false or previousURL is not equal to
urlString, then fire an event named
error at the img element.
Add the image to the list of available images using the key key, with the ignore higher-layer caching flag set.
-If maybe omit events is not set or previousURL is not equal to
- urlString, then fire an event named
- load at the img element.
If maybeOmitEvents is false or previousURL is not equal to
+ urlString, then fire an event named load at the img element.
img element to fire an
event named error at the img