/src/serenity/Userland/Libraries/LibWeb/Layout/SVGImageBox.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * Copyright (c) 2024, Tim Ledbetter <tim.ledbetter@ladybird.org> |
3 | | * |
4 | | * SPDX-License-Identifier: BSD-2-Clause |
5 | | */ |
6 | | |
7 | | #include <LibWeb/Layout/SVGImageBox.h> |
8 | | #include <LibWeb/Painting/ImagePaintable.h> |
9 | | #include <LibWeb/Painting/SVGGraphicsPaintable.h> |
10 | | #include <LibWeb/Painting/StackingContext.h> |
11 | | |
12 | | namespace Web::Layout { |
13 | | |
14 | | SVGImageBox::SVGImageBox(DOM::Document& document, SVG::SVGGraphicsElement& element, NonnullRefPtr<CSS::StyleProperties> properties) |
15 | 0 | : SVGGraphicsBox(document, element, properties) |
16 | 0 | { |
17 | 0 | } |
18 | | |
19 | | JS::GCPtr<Painting::Paintable> SVGImageBox::create_paintable() const |
20 | 0 | { |
21 | 0 | return Painting::ImagePaintable::create(*this); |
22 | 0 | } |
23 | | |
24 | | } |