summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/BrowsingContext.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-09-07 20:30:31 +0200
committerAndreas Kling <kling@serenityos.org>2022-09-07 20:30:31 +0200
commit9567e211e7c0ae27a65c1f23c4fd9071e8c35e29 (patch)
treed0de19021f93a4ffa604c9a1e51218dbe3aa2e9d /Userland/Libraries/LibWeb/HTML/BrowsingContext.h
parent7e5a8bd4b04963325e219c0cbb4c629a456c6fbc (diff)
downloadserenity-9567e211e7c0ae27a65c1f23c4fd9071e8c35e29.zip
LibWeb+WebContent: Add abstraction layer for event loop and timers
Instead of using Core::EventLoop and Core::Timer directly, LibWeb now goes through a Web::Platform abstraction layer instead. This will allow us to plug in Qt's event loop (and QTimer) over in Ladybird, to avoid having to deal with multiple event loops.
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/BrowsingContext.h')
-rw-r--r--Userland/Libraries/LibWeb/HTML/BrowsingContext.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/BrowsingContext.h b/Userland/Libraries/LibWeb/HTML/BrowsingContext.h
index ddcd870ea1..1185caf3a9 100644
--- a/Userland/Libraries/LibWeb/HTML/BrowsingContext.h
+++ b/Userland/Libraries/LibWeb/HTML/BrowsingContext.h
@@ -10,7 +10,6 @@
#include <AK/Noncopyable.h>
#include <AK/RefPtr.h>
#include <AK/WeakPtr.h>
-#include <LibCore/Timer.h>
#include <LibGfx/Bitmap.h>
#include <LibGfx/Rect.h>
#include <LibGfx/Size.h>
@@ -20,6 +19,7 @@
#include <LibWeb/HTML/SessionHistoryEntry.h>
#include <LibWeb/Loader/FrameLoader.h>
#include <LibWeb/Page/EventHandler.h>
+#include <LibWeb/Platform/Timer.h>
#include <LibWeb/TreeNode.h>
namespace Web::HTML {
@@ -148,7 +148,7 @@ private:
Gfx::IntPoint m_viewport_scroll_offset;
DOM::Position m_cursor_position;
- RefPtr<Core::Timer> m_cursor_blink_timer;
+ RefPtr<Platform::Timer> m_cursor_blink_timer;
bool m_cursor_blink_state { false };
HashTable<ViewportClient*> m_viewport_clients;