mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 04:08:08 +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:
committed by
Andreas Kling
parent
d44857d34d
commit
1e8ba0d9d3
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user