mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 02:08:12 +03:00
c37820b898
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cother-other-default-operation-rules "The compiler is more likely to get the default semantics right and you cannot implement these functions better than the compiler."
20 lines
425 B
C++
20 lines
425 B
C++
/*
|
|
* Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibWeb/UIEvents/FocusEvent.h>
|
|
|
|
namespace Web::UIEvents {
|
|
|
|
FocusEvent::FocusEvent(FlyString const& event_name, FocusEventInit const& event_init)
|
|
: UIEvent(event_name)
|
|
{
|
|
set_related_target(const_cast<DOM::EventTarget*>(event_init.related_target.ptr()));
|
|
}
|
|
|
|
FocusEvent::~FocusEvent() = default;
|
|
|
|
}
|