mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 09:46:04 -05:00
649d2faeab
We had some inconsistencies before: - Sometimes "The", sometimes "the" - Sometimes trailing ".", sometimes no trailing "." I picked the most common one (lowecase "the", trailing ".") and applied it to all copyright headers. By using the exact same string everywhere we can ensure nothing gets missed during a global search (and replace), and that these inconsistencies are not spread any further (as copyright headers are commonly copied to new files).
32 lines
638 B
C++
32 lines
638 B
C++
/*
|
|
* Copyright (c) 2020, the SerenityOS developers.
|
|
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibWeb/HTML/HTMLFormElement.h>
|
|
#include <LibWeb/HTML/HTMLSelectElement.h>
|
|
|
|
namespace Web::HTML {
|
|
|
|
HTMLSelectElement::HTMLSelectElement(DOM::Document& document, QualifiedName qualified_name)
|
|
: HTMLElement(document, move(qualified_name))
|
|
{
|
|
}
|
|
|
|
HTMLSelectElement::~HTMLSelectElement()
|
|
{
|
|
}
|
|
|
|
void HTMLSelectElement::inserted()
|
|
{
|
|
set_form(first_ancestor_of_type<HTMLFormElement>());
|
|
}
|
|
|
|
void HTMLSelectElement::removed_from(DOM::Node*)
|
|
{
|
|
set_form(nullptr);
|
|
}
|
|
|
|
}
|