Skip to content

Commit 69d3ab9

Browse files
committed
[css-animationworklet-1] Use consistent type for frame requested flag (#933)
1 parent 8448e98 commit 69d3ab9

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

css-animationworklet/Overview.bs

+11-13
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ timeline. It consists of:
417417
- : <a>animator name</a>
418418
:: A string used to identify the animator definition.
419419

420-
- : <a>animation requested flag</a>
420+
- : <a>frame requested flag</a>
421421
:: A boolean flag that indicates if the animator needs to animate.
422422

423423
- : <dfn>sync requested flag</dfn>
@@ -476,7 +476,7 @@ the following steps:
476476

477477
7. Set the following on |animatorInstance| with:
478478
- <a>animator name</a> being |name|
479-
- <a>animation requested flag</a> being <a>frame-current</a>
479+
- <a>frame requested flag</a> being <b>false</b>
480480
- <a>sync requested flag</a> being <b>false</b>
481481
- <a>animator current time</a> being unresolved
482482
- <a>effect</a> being |animatorEffect|
@@ -492,8 +492,8 @@ Running Animators {#running-animators}
492492
--------------------------------------
493493

494494
When the user agent wants to produce a new animation frame, if for any <a>animator instance</a> the
495-
associated <a>animation requested flag</a> is <a>frame-requested</a> then the the user agent
496-
<em>must</em> <a>run animators</a> for the current frame in all its associated global scopes.
495+
associated <a>frame requested flag</a> is <b>true</b> then the the user agent <em>must</em> <a>run
496+
animators</a> for the current frame in all its associated global scopes.
497497

498498
Note: The user agent is not required to run animations on every visual frame. It is legal to defer
499499
generating an animation frame until a later frame. This allow the user agent to
@@ -514,9 +514,9 @@ When the user agent wants to <dfn>run animators</dfn> in a given |workletGlobalS
514514

515515
If |definition| does not exist then abort the following steps.
516516

517-
3. If the <a>animation requested flag</a> for |animator| is <a>frame-current</a> or the
518-
effect belonging to the |animator| will not be visible within the visual viewport of the
519-
current frame the user agent <em>may</em> abort all the following steps.
517+
3. If the <a>frame requested flag</a> for |animator| is <b>false</b> or the effect belonging
518+
to the |animator| will not be visible within the visual viewport of the current frame
519+
the user agent <em>may</em> abort all the following steps.
520520

521521
Issue: Consider giving user agents permission to skip running individual animator
522522
instances to throttle slow animators.
@@ -617,15 +617,13 @@ This effectively removes the animator instance.
617617
Requesting Animation Frames {#requesting-animation-frames}
618618
----------------------------------------------------------
619619

620-
Each <a>animator instance</a> has an associated <dfn>animation requested flag</dfn>. It must be
621-
either <dfn>frame-requested</dfn> or <dfn>frame-current</dfn>. It is initially set to
622-
<a>frame-current</a>. Different circumstances can cause the <a>animation requested flag</a> to be
623-
set to <a>frame-requested</a>. These include the following:
620+
Each <a>animator instance</a> has an associated <dfn>frame requested flag</dfn>. It is initially set
621+
to <b>false</b>. Different circumstances can cause the <a>frame requested flag</a> to be set to
622+
<b>true</b>. These include the following:
624623
- Changes in the <a>current time</a> of the animator's <a>timeline</a>
625624
- Changes in the <a>current time</a> of the animator's corresponding <a>worklet animation</a>
626625

627-
Performing <a>run animators</a> resets the <a>animation requested flag</a> on animators to
628-
<a>frame-current</a>.
626+
Performing <a>run animators</a> resets the <a>frame requested flag</a> on animators to <b>false</b>.
629627

630628

631629
Web Animations Integration {#web-animation-integration}

0 commit comments

Comments
 (0)