1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:57:43 +00:00

Revert "LibWeb: Use OrderedHashMap to store pending idle callbacks"

This reverts commit dc15cacfc3.

It appears to be causing some assertions, so let's revert it.
This commit is contained in:
Andreas Kling 2022-10-27 17:25:52 +02:00
parent e152a28737
commit b1c73b3605
2 changed files with 35 additions and 18 deletions

View file

@ -172,9 +172,9 @@ private:
AnimationFrameCallbackDriver m_animation_frame_callback_driver;
// https://w3c.github.io/requestidlecallback/#dfn-list-of-idle-request-callbacks
OrderedHashMap<u32, JS::NonnullGCPtr<WebIDL::CallbackType>> m_idle_request_callbacks;
NonnullRefPtrVector<IdleCallback> m_idle_request_callbacks;
// https://w3c.github.io/requestidlecallback/#dfn-list-of-runnable-idle-callbacks
OrderedHashMap<u32, JS::NonnullGCPtr<WebIDL::CallbackType>> m_runnable_idle_callbacks;
NonnullRefPtrVector<IdleCallback> m_runnable_idle_callbacks;
// https://w3c.github.io/requestidlecallback/#dfn-idle-callback-identifier
u32 m_idle_callback_identifier = 0;