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/Layout/SVGTextPathBox.h
Line
Count
Source
1
/*
2
 * Copyright (c) 2023, MacDue <macdue@dueutil.tech>
3
 *
4
 * SPDX-License-Identifier: BSD-2-Clause
5
 */
6
7
#pragma once
8
9
#include <LibWeb/Layout/SVGGraphicsBox.h>
10
#include <LibWeb/SVG/SVGTextPathElement.h>
11
12
namespace Web::Layout {
13
14
class SVGTextPathBox final : public SVGGraphicsBox {
15
    JS_CELL(SVGTextPathBox, SVGGraphicsBox);
16
    JS_DECLARE_ALLOCATOR(SVGTextPathBox);
17
18
public:
19
    SVGTextPathBox(DOM::Document&, SVG::SVGTextPathElement&, NonnullRefPtr<CSS::StyleProperties>);
20
    virtual ~SVGTextPathBox() override = default;
21
22
0
    SVG::SVGTextPathElement& dom_node() { return static_cast<SVG::SVGTextPathElement&>(SVGGraphicsBox::dom_node()); }
23
0
    SVG::SVGTextPathElement const& dom_node() const { return static_cast<SVG::SVGTextPathElement const&>(SVGGraphicsBox::dom_node()); }
24
25
    virtual JS::GCPtr<Painting::Paintable> create_paintable() const override;
26
27
private:
28
    CSSPixelPoint viewbox_origin() const;
29
};
30
31
}