mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:38:10 +00:00
LibWeb: Go directly from DOM node to paintable in cursor blink timer
No need to go via the layout tree anymore.
This commit is contained in:
parent
8d80841e9c
commit
92b6edb35a
1 changed files with 1 additions and 1 deletions
|
@ -273,7 +273,7 @@ BrowsingContext::BrowsingContext(JS::NonnullGCPtr<Page> 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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue