Coverage Report

Created: 2026-02-16 07:47

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/serenity/Userland/Libraries/LibWeb/WebGL/WebGLContextEvent.cpp
Line
Count
Source
1
/*
2
 * Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
3
 *
4
 * SPDX-License-Identifier: BSD-2-Clause
5
 */
6
7
#include <LibWeb/Bindings/Intrinsics.h>
8
#include <LibWeb/Bindings/WebGLContextEventPrototype.h>
9
#include <LibWeb/WebGL/WebGLContextEvent.h>
10
11
namespace Web::WebGL {
12
13
JS_DEFINE_ALLOCATOR(WebGLContextEvent);
14
15
JS::NonnullGCPtr<WebGLContextEvent> WebGLContextEvent::create(JS::Realm& realm, FlyString const& event_name, WebGLContextEventInit const& event_init)
16
0
{
17
0
    return realm.heap().allocate<WebGLContextEvent>(realm, realm, event_name, event_init);
18
0
}
19
20
WebIDL::ExceptionOr<JS::NonnullGCPtr<WebGLContextEvent>> WebGLContextEvent::construct_impl(JS::Realm& realm, FlyString const& event_name, WebGLContextEventInit const& event_init)
21
0
{
22
0
    return create(realm, event_name, event_init);
23
0
}
24
25
WebGLContextEvent::WebGLContextEvent(JS::Realm& realm, FlyString const& type, WebGLContextEventInit const& event_init)
26
0
    : DOM::Event(realm, type, event_init)
27
0
    , m_status_message(event_init.status_message)
28
0
{
29
0
}
30
31
0
WebGLContextEvent::~WebGLContextEvent() = default;
32
33
void WebGLContextEvent::initialize(JS::Realm& realm)
34
0
{
35
0
    Base::initialize(realm);
36
0
    WEB_SET_PROTOTYPE_FOR_INTERFACE(WebGLContextEvent);
37
0
}
38
39
}