mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-01 16:58:52 +00:00
LibWeb: Delete EditableTextNodeOwner
It's no longer needed after FormAssociatedTextControlElement became responsible for managing input events for text controls.
This commit is contained in:
parent
34c0303ae1
commit
2a29e348c9
Notes:
github-actions[bot]
2024-11-06 17:06:03 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 2a29e348c9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2199
8 changed files with 8 additions and 33 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue