/src/serenity/Userland/Libraries/LibWeb/Layout/SVGGraphicsBox.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/SVGBox.h> |
10 | | #include <LibWeb/SVG/SVGElement.h> |
11 | | #include <LibWeb/SVG/SVGGraphicsElement.h> |
12 | | |
13 | | namespace Web::Layout { |
14 | | |
15 | | class SVGGraphicsBox : public SVGBox { |
16 | | JS_CELL(SVGGraphicsBox, SVGBox); |
17 | | |
18 | | public: |
19 | | SVGGraphicsBox(DOM::Document&, SVG::SVGGraphicsElement&, NonnullRefPtr<CSS::StyleProperties>); |
20 | | virtual ~SVGGraphicsBox() override = default; |
21 | | |
22 | 0 | SVG::SVGGraphicsElement& dom_node() { return verify_cast<SVG::SVGGraphicsElement>(SVGBox::dom_node()); } |
23 | 0 | SVG::SVGGraphicsElement const& dom_node() const { return verify_cast<SVG::SVGGraphicsElement>(SVGBox::dom_node()); } |
24 | | |
25 | | virtual JS::GCPtr<Painting::Paintable> create_paintable() const override; |
26 | | }; |
27 | | |
28 | | } |