From 92b6edb35ab1383838a43e2533b1023ce5d6b719 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 16 Jan 2024 12:01:29 +0100 Subject: [PATCH] LibWeb: Go directly from DOM node to paintable in cursor blink timer No need to go via the layout tree anymore. --- Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp b/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp index 11c96990d6..abb441e885 100644 --- a/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp +++ b/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp @@ -273,7 +273,7 @@ BrowsingContext::BrowsingContext(JS::NonnullGCPtr page, HTML::NavigableCon m_cursor_blink_timer = Core::Timer::create_repeating(500, [this] { if (!is_focused_context()) return; - if (m_cursor_position && m_cursor_position->node()->layout_node() && m_cursor_position->node()->layout_node()->paintable()) { + if (m_cursor_position && m_cursor_position->node()->paintable()) { m_cursor_blink_state = !m_cursor_blink_state; m_cursor_position->node()->paintable()->set_needs_display(); }