
SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
32 lines
650 B
C++
32 lines
650 B
C++
/*
|
|
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibWeb/HTML/HTMLElement.h>
|
|
#include <LibWeb/HTML/SubmitEvent.h>
|
|
|
|
namespace Web::HTML {
|
|
|
|
NonnullRefPtr<SubmitEvent> SubmitEvent::create(const FlyString& event_name, RefPtr<HTMLElement> submitter)
|
|
{
|
|
return adopt(*new SubmitEvent(event_name, move(submitter)));
|
|
}
|
|
|
|
SubmitEvent::SubmitEvent(const FlyString& event_name, RefPtr<HTMLElement> submitter)
|
|
: DOM::Event(event_name)
|
|
, m_submitter(submitter)
|
|
{
|
|
}
|
|
|
|
SubmitEvent::~SubmitEvent()
|
|
{
|
|
}
|
|
|
|
RefPtr<HTMLElement> SubmitEvent::submitter() const
|
|
{
|
|
return m_submitter;
|
|
}
|
|
|
|
}
|