LibWeb: Delete EditableTextNodeOwner

It's no longer needed after FormAssociatedTextControlElement became
responsible for managing input events for text controls.
This commit is contained in:
Aliaksandr Kalenik 2024-11-06 16:46:50 +01:00 committed by Alexander Kalenik
parent 34c0303ae1
commit 2a29e348c9
Notes: github-actions[bot] 2024-11-06 17:06:03 +00:00
8 changed files with 8 additions and 33 deletions

View file

@ -850,7 +850,6 @@ void HTMLInputElement::create_text_input_shadow_tree()
m_placeholder_text_node = heap().allocate<DOM::Text>(realm(), document(), String {});
m_placeholder_text_node->set_data(placeholder());
m_placeholder_text_node->set_editable_text_node_owner(Badge<HTMLInputElement> {}, *this);
MUST(m_placeholder_element->append_child(*m_placeholder_text_node));
// https://www.w3.org/TR/css-ui-4/#input-rules
@ -871,7 +870,6 @@ void HTMLInputElement::create_text_input_shadow_tree()
} else {
handle_readonly_attribute(attribute(HTML::AttributeNames::readonly));
}
m_text_node->set_editable_text_node_owner(Badge<HTMLInputElement> {}, *this);
if (type_state() == TypeAttributeState::Password)
m_text_node->set_is_password_input({}, true);
handle_maxlength_attribute();