Revert "LibWeb: Change where content selection via mouse is allowed"

This reverts commit 6c9adf3dbc.

This change breaks e.g. typing into the search box on google.com and
comment boxes on github.com.
This commit is contained in:
Timothy Flynn 2024-08-26 12:23:21 -04:00 committed by Tim Flynn
parent fa4b324a12
commit 660e846e94
Notes: github-actions[bot] 2024-08-26 18:09:55 +00:00
5 changed files with 3 additions and 24 deletions

View file

@ -2380,9 +2380,4 @@ HTMLInputElement::ValueAttributeMode HTMLInputElement::value_attribute_mode() co
VERIFY_NOT_REACHED();
}
bool HTMLInputElement::is_child_node_selectable(DOM::Node const& node) const
{
return !is_button() && (!m_placeholder_element || !m_placeholder_element->is_inclusive_ancestor_of(node));
}
}