/src/serenity/Userland/Libraries/LibWeb/Layout/SVGForeignObjectBox.cpp
Line | Count | Source |
1 | | /* |
2 | | * Copyright (c) 2024, Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com> |
3 | | * |
4 | | * SPDX-License-Identifier: BSD-2-Clause |
5 | | */ |
6 | | |
7 | | #include <LibWeb/Layout/SVGForeignObjectBox.h> |
8 | | #include <LibWeb/Painting/SVGForeignObjectPaintable.h> |
9 | | #include <LibWeb/SVG/SVGSVGElement.h> |
10 | | |
11 | | namespace Web::Layout { |
12 | | |
13 | | JS_DEFINE_ALLOCATOR(SVGForeignObjectBox); |
14 | | |
15 | | SVGForeignObjectBox::SVGForeignObjectBox(DOM::Document& document, SVG::SVGForeignObjectElement& element, NonnullRefPtr<CSS::StyleProperties> properties) |
16 | 0 | : BlockContainer(document, &element, properties) |
17 | 0 | { |
18 | 0 | } |
19 | | |
20 | | JS::GCPtr<Painting::Paintable> SVGForeignObjectBox::create_paintable() const |
21 | 0 | { |
22 | 0 | return Painting::SVGForeignObjectPaintable::create(*this); |
23 | 0 | } |
24 | | |
25 | | } |