mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:48:11 +00:00
LibWeb: Add missing upcalls in HTMLInputElement
We need to call the base class in overrides of inserted() and removed_from(), or things like style invalidation will break.
This commit is contained in:
parent
af2761600d
commit
06e54ea916
1 changed files with 3 additions and 1 deletions
|
@ -118,11 +118,13 @@ void HTMLInputElement::create_shadow_tree_if_needed()
|
||||||
|
|
||||||
void HTMLInputElement::inserted()
|
void HTMLInputElement::inserted()
|
||||||
{
|
{
|
||||||
|
HTMLElement::inserted();
|
||||||
set_form(first_ancestor_of_type<HTMLFormElement>());
|
set_form(first_ancestor_of_type<HTMLFormElement>());
|
||||||
}
|
}
|
||||||
|
|
||||||
void HTMLInputElement::removed_from(DOM::Node*)
|
void HTMLInputElement::removed_from(DOM::Node* old_parent)
|
||||||
{
|
{
|
||||||
|
HTMLElement::removed_from(old_parent);
|
||||||
set_form(nullptr);
|
set_form(nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue