diff options
author | Linus Groh <mail@linusgroh.de> | 2023-03-06 19:50:46 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-03-07 23:33:34 +0000 |
commit | 7de9179a6d21757ffa6ee392c40d268b735b29d9 (patch) | |
tree | 5ff3a70e989f5f5aaf1c3c409a589a1f23f05692 /Userland/Libraries/LibWeb/HTML/EventLoop | |
parent | 95ce5735ce298fb10f71eae836dabff101e6a641 (diff) | |
download | serenity-7de9179a6d21757ffa6ee392c40d268b735b29d9.zip |
LibWeb/HTML: Port Window.performance to IDL
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/EventLoop')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/EventLoop/EventLoop.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/EventLoop/EventLoop.cpp b/Userland/Libraries/LibWeb/HTML/EventLoop/EventLoop.cpp index cef6687c0f..2df1063607 100644 --- a/Userland/Libraries/LibWeb/HTML/EventLoop/EventLoop.cpp +++ b/Userland/Libraries/LibWeb/HTML/EventLoop/EventLoop.cpp @@ -187,8 +187,9 @@ void EventLoop::process() // FIXME: 12. For each fully active Document in docs, if the user agent detects that the backing storage associated with a CanvasRenderingContext2D or an OffscreenCanvasRenderingContext2D, context, has been lost, then it must run the context lost steps for each such context: // FIXME: 13. For each fully active Document in docs, run the animation frame callbacks for that Document, passing in now as the timestamp. + auto now = HighResolutionTime::unsafe_shared_current_time(); for_each_fully_active_document_in_docs([&](DOM::Document& document) { - run_animation_frame_callbacks(document, document.window().performance().now()); + run_animation_frame_callbacks(document, now); }); // FIXME: 14. For each fully active Document in docs, run the update intersection observations steps for that Document, passing in now as the timestamp. [INTERSECTIONOBSERVER] |