mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
LibWeb: Reset cursor blink cycle, even if there's no viewport paintable
If we programmatically set a selection in an editable element during document load, we failed to start the cursor blink cycle timer. The cursor blink logic already takes care of us not having the paintable yet, so start it unconditionally.
This commit is contained in:
parent
97746fb574
commit
cd08b3b6f4
Notes:
github-actions[bot]
2025-08-20 10:37:22 +00:00
Author: https://github.com/gmta
Commit: cd08b3b6f4
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5924
1 changed files with 1 additions and 1 deletions
|
@ -104,8 +104,8 @@ void Range::update_associated_selection()
|
|||
return;
|
||||
|
||||
auto& document = m_start_container->document();
|
||||
document.reset_cursor_blink_cycle();
|
||||
if (auto* viewport = document.paintable()) {
|
||||
document.reset_cursor_blink_cycle();
|
||||
viewport->recompute_selection_states(*this);
|
||||
viewport->set_needs_display();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue