/* * Copyright (c) 2021, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include namespace Web::HTML { class FormAssociatedElement { public: HTMLFormElement* form() { return m_form; } HTMLFormElement const* form() const { return m_form; } void set_form(HTMLFormElement*); protected: FormAssociatedElement() = default; virtual ~FormAssociatedElement() = default; virtual HTMLElement& form_associated_element_to_html_element() = 0; private: WeakPtr m_form; }; }