/src/serenity/Userland/Libraries/LibWeb/Painting/SVGClipPaintable.h
Line | Count | Source |
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/SVGClipBox.h> |
10 | | #include <LibWeb/Painting/SVGPaintable.h> |
11 | | |
12 | | namespace Web::Painting { |
13 | | |
14 | | class SVGClipPaintable : public SVGPaintable { |
15 | | JS_CELL(SVGClipPaintable, SVGPaintable); |
16 | | JS_DECLARE_ALLOCATOR(SVGClipPaintable); |
17 | | |
18 | | public: |
19 | | static JS::NonnullGCPtr<SVGClipPaintable> create(Layout::SVGClipBox const&); |
20 | | |
21 | | bool forms_unconnected_subtree() const override |
22 | 0 | { |
23 | 0 | return true; |
24 | 0 | } |
25 | | |
26 | | protected: |
27 | | SVGClipPaintable(Layout::SVGClipBox const&); |
28 | | }; |
29 | | |
30 | | } |