summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Platform/EventLoopPluginSerenity.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibWeb/Platform/EventLoopPluginSerenity.cpp')
-rw-r--r--Userland/Libraries/LibWeb/Platform/EventLoopPluginSerenity.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/Userland/Libraries/LibWeb/Platform/EventLoopPluginSerenity.cpp b/Userland/Libraries/LibWeb/Platform/EventLoopPluginSerenity.cpp
index 7a2246a30c..f087f50b54 100644
--- a/Userland/Libraries/LibWeb/Platform/EventLoopPluginSerenity.cpp
+++ b/Userland/Libraries/LibWeb/Platform/EventLoopPluginSerenity.cpp
@@ -5,7 +5,6 @@
*/
#include "EventLoopPluginSerenity.h"
-#include <AK/Function.h>
#include <AK/NonnullRefPtr.h>
#include <LibCore/EventLoop.h>
#include <LibWeb/Platform/TimerSerenity.h>
@@ -15,12 +14,12 @@ namespace Web::Platform {
EventLoopPluginSerenity::EventLoopPluginSerenity() = default;
EventLoopPluginSerenity::~EventLoopPluginSerenity() = default;
-void EventLoopPluginSerenity::spin_until(Function<bool()> goal_condition)
+void EventLoopPluginSerenity::spin_until(JS::SafeFunction<bool()> goal_condition)
{
Core::EventLoop::current().spin_until(move(goal_condition));
}
-void EventLoopPluginSerenity::deferred_invoke(Function<void()> function)
+void EventLoopPluginSerenity::deferred_invoke(JS::SafeFunction<void()> function)
{
VERIFY(function);
Core::deferred_invoke(move(function));