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/Layout/SVGGeometryBox.h
Line
Count
Source
1
/*
2
 * Copyright (c) 2020, Matthew Olsson <mattco@serenityos.org>
3
 *
4
 * SPDX-License-Identifier: BSD-2-Clause
5
 */
6
7
#pragma once
8
9
#include <AK/Optional.h>
10
#include <LibWeb/Layout/SVGGraphicsBox.h>
11
#include <LibWeb/SVG/SVGGeometryElement.h>
12
13
namespace Web::Layout {
14
15
class SVGGeometryBox final : public SVGGraphicsBox {
16
    JS_CELL(SVGGeometryBox, SVGGraphicsBox);
17
    JS_DECLARE_ALLOCATOR(SVGGeometryBox);
18
19
public:
20
    SVGGeometryBox(DOM::Document&, SVG::SVGGeometryElement&, NonnullRefPtr<CSS::StyleProperties>);
21
    virtual ~SVGGeometryBox() override = default;
22
23
0
    SVG::SVGGeometryElement& dom_node() { return static_cast<SVG::SVGGeometryElement&>(SVGGraphicsBox::dom_node()); }
24
0
    SVG::SVGGeometryElement const& dom_node() const { return static_cast<SVG::SVGGeometryElement const&>(SVGGraphicsBox::dom_node()); }
25
26
    virtual JS::GCPtr<Painting::Paintable> create_paintable() const override;
27
28
private:
29
0
    virtual bool is_svg_geometry_box() const final { return true; }
30
};
31
32
template<>
33
0
inline bool Node::fast_is<SVGGeometryBox>() const { return is_svg_geometry_box(); }
34
35
}