mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +00:00
LibWeb: Add missing upcalls in HTMLSelectElement
This commit is contained in:
parent
06e54ea916
commit
76ac1b2496
Notes:
sideshowbarker
2024-07-18 02:48:34 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/76ac1b24962
1 changed files with 3 additions and 1 deletions
|
@ -21,11 +21,13 @@ HTMLSelectElement::~HTMLSelectElement()
|
|||
|
||||
void HTMLSelectElement::inserted()
|
||||
{
|
||||
HTMLElement::inserted();
|
||||
set_form(first_ancestor_of_type<HTMLFormElement>());
|
||||
}
|
||||
|
||||
void HTMLSelectElement::removed_from(DOM::Node*)
|
||||
void HTMLSelectElement::removed_from(DOM::Node* old_parent)
|
||||
{
|
||||
HTMLElement::removed_from(old_parent);
|
||||
set_form(nullptr);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue