Coverage Report

Created: 2025-09-05 06:52

/src/serenity/Userland/Libraries/LibWeb/DOM/AbstractRange.cpp
Line
Count
Source (jump to first uncovered line)
1
/*
2
 * Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
3
 *
4
 * SPDX-License-Identifier: BSD-2-Clause
5
 */
6
7
#include <LibWeb/Bindings/AbstractRangePrototype.h>
8
#include <LibWeb/Bindings/Intrinsics.h>
9
#include <LibWeb/DOM/AbstractRange.h>
10
#include <LibWeb/DOM/Document.h>
11
12
namespace Web::DOM {
13
14
AbstractRange::AbstractRange(Node& start_container, WebIDL::UnsignedLong start_offset, Node& end_container, WebIDL::UnsignedLong end_offset)
15
0
    : Bindings::PlatformObject(start_container.realm())
16
0
    , m_start_container(start_container)
17
0
    , m_start_offset(start_offset)
18
0
    , m_end_container(end_container)
19
0
    , m_end_offset(end_offset)
20
0
{
21
0
}
22
23
0
AbstractRange::~AbstractRange() = default;
24
25
void AbstractRange::initialize(JS::Realm& realm)
26
0
{
27
0
    Base::initialize(realm);
28
0
    WEB_SET_PROTOTYPE_FOR_INTERFACE(AbstractRange);
29
0
}
30
31
void AbstractRange::visit_edges(Cell::Visitor& visitor)
32
0
{
33
0
    Base::visit_edges(visitor);
34
0
    visitor.visit(m_start_container);
35
0
    visitor.visit(m_end_container);
36
0
}
37
38
}