Coverage Report

Created: 2026-06-07 07:41

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/serenity/Userland/Libraries/LibWeb/Layout/SVGBox.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 <LibWeb/Layout/BlockContainer.h>
10
#include <LibWeb/SVG/SVGElement.h>
11
#include <LibWeb/SVG/SVGGraphicsElement.h>
12
13
namespace Web::Layout {
14
15
class SVGBox : public Box {
16
    JS_CELL(SVGBox, Box);
17
18
public:
19
    SVGBox(DOM::Document&, SVG::SVGElement&, NonnullRefPtr<CSS::StyleProperties>);
20
    virtual ~SVGBox() override = default;
21
22
0
    SVG::SVGElement& dom_node() { return verify_cast<SVG::SVGElement>(*Box::dom_node()); }
23
0
    SVG::SVGElement const& dom_node() const { return verify_cast<SVG::SVGElement>(*Box::dom_node()); }
24
25
private:
26
0
    virtual bool is_svg_box() const final { return true; }
27
};
28
29
template<>
30
0
inline bool Node::fast_is<SVGBox>() const { return is_svg_box(); }
31
32
}