mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb/HTML: Port Window.performance to IDL
This commit is contained in:
Notes:
sideshowbarker
2024-07-16 23:14:32 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/7de9179a6d Pull-request: https://github.com/SerenityOS/serenity/pull/17752 Reviewed-by: https://github.com/awesomekling
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user