Coverage Report

Created: 2026-02-14 08:01

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/serenity/Userland/Libraries/LibWeb/SVG/SVGTextElement.cpp
Line
Count
Source
1
/*
2
 * Copyright (c) 2023, MacDue <macdue@dueutil.tech>
3
 *
4
 * SPDX-License-Identifier: BSD-2-Clause
5
 */
6
7
#include <LibWeb/Bindings/SVGTextElementPrototype.h>
8
#include <LibWeb/Layout/SVGTextBox.h>
9
#include <LibWeb/SVG/SVGTextElement.h>
10
11
namespace Web::SVG {
12
13
JS_DEFINE_ALLOCATOR(SVGTextElement);
14
15
SVGTextElement::SVGTextElement(DOM::Document& document, DOM::QualifiedName qualified_name)
16
0
    : SVGTextPositioningElement(document, move(qualified_name))
17
0
{
18
0
}
19
20
void SVGTextElement::initialize(JS::Realm& realm)
21
0
{
22
0
    Base::initialize(realm);
23
0
    WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGTextElement);
24
0
}
25
26
JS::GCPtr<Layout::Node> SVGTextElement::create_layout_node(NonnullRefPtr<CSS::StyleProperties> style)
27
0
{
28
0
    return heap().allocate_without_realm<Layout::SVGTextBox>(document(), *this, move(style));
29
0
}
30
31
}