From 43b120039e9f5727740c9a31970cdea31c1593ba Mon Sep 17 00:00:00 2001 From: Noam Rosenthal Date: Wed, 4 Oct 2023 17:05:51 +0300 Subject: [PATCH] Relativize and coarsen timestamps in "update the rendering" When passing them to web animations, requestAnimationFrame(), and IntersectionObserver. Closes #7931. --- source | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/source b/source index 2f9966b4e1b..fa7ba5d73be 100644 --- a/source +++ b/source @@ -3370,6 +3370,8 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute

High Resolution Time provides the current high resolution time, the relative high + resolution time, the unsafe shared current time, the shared monotonic clock, @@ -106946,7 +106948,9 @@ import "https://example.com/foo/../module2.mjs";

  • For each fully active Document in docs, update animations and send events for that Document, passing in - now as the timestamp. WEBANIMATIONS

  • + relative high resolution time given now and that + Document's relevant global object as the timestamp. + WEBANIMATIONS

  • For each fully active Document in docs, run the fullscreen steps for that Document. FULLSCREEN

  • @@ -106988,8 +106992,9 @@ import "https://example.com/foo/../module2.mjs";
  • For each fully active Document in docs, run - the animation frame callbacks for that Document, passing in now - as the timestamp.

  • + the animation frame callbacks for that Document, passing in the + relative high resolution time given now and that + Document's relevant global object as the timestamp.

  • For each fully active Document doc in @@ -107080,9 +107085,11 @@ import "https://example.com/foo/../module2.mjs"; perform pending transition operations for that Document. CSSVIEWTRANSITIONS

  • -
  • For each fully active Document in docs, run +

  • For each fully active Document in docs, run the update intersection observations steps for that Document, passing in - now as the timestamp. INTERSECTIONOBSERVER

  • + the relative high resolution time given now and that + Document's relevant global object as the timestamp. + INTERSECTIONOBSERVER

  • Invoke the mark paint timing algorithm for each Document object in docs.