Coverage Report

Created: 2025-03-04 07:22

/src/serenity/Userland/Libraries/LibWeb/Layout/SVGClipBox.h
Line
Count
Source (jump to first uncovered line)
1
/*
2
 * Copyright (c) 2024, MacDue <macdue@dueutil.tech>
3
 *
4
 * SPDX-License-Identifier: BSD-2-Clause
5
 */
6
7
#pragma once
8
9
#include <LibWeb/Layout/SVGBox.h>
10
#include <LibWeb/SVG/SVGClipPathElement.h>
11
#include <LibWeb/SVG/SVGElement.h>
12
13
namespace Web::Layout {
14
15
class SVGClipBox : public SVGBox {
16
    JS_CELL(SVGClipBox, SVGBox);
17
    JS_DECLARE_ALLOCATOR(SVGClipBox);
18
19
public:
20
    SVGClipBox(DOM::Document&, SVG::SVGClipPathElement&, NonnullRefPtr<CSS::StyleProperties>);
21
    virtual ~SVGClipBox() override = default;
22
23
0
    SVG::SVGClipPathElement& dom_node() { return verify_cast<SVG::SVGClipPathElement>(SVGBox::dom_node()); }
24
0
    SVG::SVGClipPathElement const& dom_node() const { return verify_cast<SVG::SVGClipPathElement>(SVGBox::dom_node()); }
25
26
    virtual JS::GCPtr<Painting::Paintable> create_paintable() const override;
27
};
28
29
}