diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-10-01 18:46:37 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-01 20:14:45 +0200 |
commit | 1e8ba0d9d362dffb8e781d0a45155623c8bc2cea (patch) | |
tree | 34df82108121129d71a7ac70a6769e19e942aeed /Userland/Libraries/LibWeb/HTML/SubmitEvent.cpp | |
parent | d44857d34d0aebef52374297b846304321d355ac (diff) | |
download | serenity-1e8ba0d9d362dffb8e781d0a45155623c8bc2cea.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/SubmitEvent.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/SubmitEvent.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/SubmitEvent.cpp b/Userland/Libraries/LibWeb/HTML/SubmitEvent.cpp deleted file mode 100644 index fc63ef6ded..0000000000 --- a/Userland/Libraries/LibWeb/HTML/SubmitEvent.cpp +++ /dev/null @@ -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; -} - -} |