mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:58:11 +00:00
LibWeb: Add the missing SubmitEvent IDL constructor
This commit also removes the SubmitEvent.cpp file, as all of the method implementations were trivial and could be inlined into the header file.
This commit is contained in:
parent
d44857d34d
commit
1e8ba0d9d3
5 changed files with 31 additions and 39 deletions
|
@ -1,32 +0,0 @@
|
|||
/*
|
||||
* 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_ref(*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;
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue