LibWeb: Register FormAssociatedElement with their owner form

This will eventually allow us to implement HTMLFormControlsCollection.
This commit is contained in:
Andreas Kling 2021-04-20 23:34:49 +02:00
commit 78733417a4
Notes: sideshowbarker 2024-07-18 19:19:19 +09:00
6 changed files with 32 additions and 2 deletions

View file

@ -39,7 +39,10 @@ public:
void set_form(HTMLFormElement*);
protected:
FormAssociatedElement() { }
FormAssociatedElement() = default;
virtual ~FormAssociatedElement() = default;
virtual HTMLElement& form_associated_element_to_html_element() = 0;
private:
WeakPtr<HTMLFormElement> m_form;