mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-02 09:18:52 +00:00
LibWeb: Delete m_selected flag from Paintable
This was redundant when Paintable already has `m_selection_state` that could be none.
This commit is contained in:
parent
5b67f17551
commit
d7caa426a0
Notes:
github-actions[bot]
2024-11-14 18:51:50 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: d7caa426a0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2344
9 changed files with 0 additions and 50 deletions
|
@ -672,11 +672,9 @@ void FormAssociatedTextControlElement::selection_was_changed()
|
|||
if (!text_paintable)
|
||||
return;
|
||||
if (m_selection_start == m_selection_end) {
|
||||
text_paintable->set_selected(false);
|
||||
text_paintable->set_selection_state(Painting::Paintable::SelectionState::None);
|
||||
text_node->document().reset_cursor_blink_cycle();
|
||||
} else {
|
||||
text_paintable->set_selected(true);
|
||||
text_paintable->set_selection_state(Painting::Paintable::SelectionState::StartAndEnd);
|
||||
}
|
||||
text_paintable->set_needs_display();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue