Coverage Report

Created: 2025-08-28 06:26

/src/serenity/Userland/Libraries/LibWeb/Layout/SVGImageBox.h
Line
Count
Source (jump to first uncovered line)
1
/*
2
 * Copyright (c) 2024, Tim Ledbetter <tim.ledbetter@ladybird.org>
3
 *
4
 * SPDX-License-Identifier: BSD-2-Clause
5
 */
6
7
#pragma once
8
9
#include <LibJS/Heap/GCPtr.h>
10
#include <LibWeb/Layout/SVGGraphicsBox.h>
11
#include <LibWeb/SVG/SVGImageElement.h>
12
13
namespace Web::Layout {
14
15
class SVGImageBox : public SVGGraphicsBox {
16
    JS_CELL(SVGImageBox, SVGGraphicsBox);
17
18
public:
19
    SVGImageBox(DOM::Document&, SVG::SVGGraphicsElement&, NonnullRefPtr<CSS::StyleProperties>);
20
    virtual ~SVGImageBox() override = default;
21
22
0
    SVG::SVGImageElement& dom_node() { return static_cast<SVG::SVGImageElement&>(SVGGraphicsBox::dom_node()); }
23
0
    SVG::SVGImageElement const& dom_node() const { return static_cast<SVG::SVGImageElement const&>(SVGGraphicsBox::dom_node()); }
24
25
    virtual JS::GCPtr<Painting::Paintable> create_paintable() const override;
26
};
27
28
}