Coverage Report

Created: 2025-12-18 07:52

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