1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 02:57:36 +00:00

LibWeb: Make BrowsingContext::reset_cursor_blink_cycle() more robust

If the browsing context text cursor has become invalid for whatever
reason, don't try to repaint its associated node.
This commit is contained in:
Andreas Kling 2022-03-14 23:07:38 +01:00
parent 5b8290dfa3
commit 8aa24c45dd

View file

@ -54,6 +54,7 @@ void BrowsingContext::reset_cursor_blink_cycle()
{
m_cursor_blink_state = true;
m_cursor_blink_timer->restart();
if (m_cursor_position.is_valid() && m_cursor_position.node()->layout_node())
m_cursor_position.node()->layout_node()->set_needs_display();
}