mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 17:28:30 +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:
committed by
Andreas Kling
parent
5b67f17551
commit
d7caa426a0
@@ -79,9 +79,6 @@ void HTMLTextAreaElement::did_receive_focus()
|
||||
return;
|
||||
m_text_node->invalidate_style(DOM::StyleInvalidationReason::DidReceiveFocus);
|
||||
|
||||
if (auto* paintable = m_text_node->paintable())
|
||||
paintable->set_selected(true);
|
||||
|
||||
if (m_placeholder_text_node)
|
||||
m_placeholder_text_node->invalidate_style(DOM::StyleInvalidationReason::DidReceiveFocus);
|
||||
}
|
||||
@@ -91,9 +88,6 @@ void HTMLTextAreaElement::did_lose_focus()
|
||||
if (m_text_node)
|
||||
m_text_node->invalidate_style(DOM::StyleInvalidationReason::DidLoseFocus);
|
||||
|
||||
if (auto* paintable = m_text_node->paintable())
|
||||
paintable->set_selected(false);
|
||||
|
||||
if (m_placeholder_text_node)
|
||||
m_placeholder_text_node->invalidate_style(DOM::StyleInvalidationReason::DidLoseFocus);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user