summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/UIEvents/FocusEvent.cpp
blob: 4a25d9f79b2240540eed4db8a6e59fbc53ee5ba2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * 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;

}