Coverage Report

Created: 2025-03-04 07:22

/src/serenity/Userland/Libraries/LibWeb/Painting/SVGMaskPaintable.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/SVGMaskBox.h>
10
#include <LibWeb/Painting/SVGGraphicsPaintable.h>
11
12
namespace Web::Painting {
13
14
class SVGMaskPaintable : public SVGGraphicsPaintable {
15
    JS_CELL(SVGMaskPaintable, SVGGraphicsPaintable);
16
    JS_DECLARE_ALLOCATOR(SVGMaskPaintable);
17
18
public:
19
    static JS::NonnullGCPtr<SVGMaskPaintable> create(Layout::SVGMaskBox const&);
20
21
    bool forms_unconnected_subtree() const override
22
0
    {
23
        // Masks should not be painted (i.e. reachable) unless referenced by another element.
24
0
        return true;
25
0
    }
26
27
protected:
28
    SVGMaskPaintable(Layout::SVGMaskBox const&);
29
};
30
31
}