diff --git a/Userland/Libraries/LibWeb/DOM/Document.cpp b/Userland/Libraries/LibWeb/DOM/Document.cpp index 99809e8ae6..8d825b4d02 100644 --- a/Userland/Libraries/LibWeb/DOM/Document.cpp +++ b/Userland/Libraries/LibWeb/DOM/Document.cpp @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -84,7 +85,6 @@ #include #include #include -#include #include #include #include @@ -319,13 +319,13 @@ Document::Document(JS::Realm& realm, const AK::URL& url) { HTML::main_thread_event_loop().register_document({}, *this); - m_style_update_timer = Platform::Timer::create_single_shot(0, [this] { + m_style_update_timer = Core::Timer::create_single_shot(0, [this] { update_style(); - }); + }).release_value_but_fixme_should_propagate_errors(); - m_layout_update_timer = Platform::Timer::create_single_shot(0, [this] { + m_layout_update_timer = Core::Timer::create_single_shot(0, [this] { update_layout(); - }); + }).release_value_but_fixme_should_propagate_errors(); } Document::~Document() diff --git a/Userland/Libraries/LibWeb/DOM/Document.h b/Userland/Libraries/LibWeb/DOM/Document.h index 724f1c2921..e2b34fc916 100644 --- a/Userland/Libraries/LibWeb/DOM/Document.h +++ b/Userland/Libraries/LibWeb/DOM/Document.h @@ -531,8 +531,8 @@ private: Optional m_active_link_color; Optional m_visited_link_color; - RefPtr m_style_update_timer; - RefPtr m_layout_update_timer; + RefPtr m_style_update_timer; + RefPtr m_layout_update_timer; JS::GCPtr m_parser; bool m_active_parser_was_aborted { false };