diff --git a/Userland/Libraries/LibWeb/HTML/AnimationFrameCallbackDriver.h b/Userland/Libraries/LibWeb/HTML/AnimationFrameCallbackDriver.h
index 29894f67323..cdc72292eba 100644
--- a/Userland/Libraries/LibWeb/HTML/AnimationFrameCallbackDriver.h
+++ b/Userland/Libraries/LibWeb/HTML/AnimationFrameCallbackDriver.h
@@ -9,8 +9,8 @@
#include
#include
#include
+#include
#include
-#include
namespace Web::HTML {
@@ -19,9 +19,9 @@ struct AnimationFrameCallbackDriver {
AnimationFrameCallbackDriver()
{
- m_timer = Platform::Timer::create_single_shot(16, [] {
+ m_timer = MUST(Core::Timer::create_single_shot(16, [] {
HTML::main_thread_event_loop().schedule();
- });
+ }));
}
i32 add(Callback handler)
@@ -58,7 +58,7 @@ struct AnimationFrameCallbackDriver {
private:
OrderedHashMap m_callbacks;
IDAllocator m_id_allocator;
- RefPtr m_timer;
+ RefPtr m_timer;
};
}