mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +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
|
@ -1234,8 +1234,6 @@ void Document::update_layout()
|
|||
page().client().page_did_layout();
|
||||
}
|
||||
|
||||
paintable()->update_selection();
|
||||
|
||||
m_needs_layout = false;
|
||||
|
||||
// Scrolling by zero offset will clamp scroll offset back to valid range if it was out of bounds
|
||||
|
|
|
@ -99,7 +99,6 @@ void Range::update_associated_selection()
|
|||
auto& document = m_start_container->document();
|
||||
if (auto* viewport = document.paintable()) {
|
||||
viewport->recompute_selection_states(*this);
|
||||
viewport->update_selection();
|
||||
viewport->set_needs_display();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue