Coverage Report

Created: 2025-03-04 07:22

/src/serenity/Userland/Libraries/LibWeb/Painting/SVGGraphicsPaintable.cpp
Line
Count
Source (jump to first uncovered line)
1
/*
2
 * Copyright (c) 2018-2022, Andreas Kling <kling@serenityos.org>
3
 *
4
 * SPDX-License-Identifier: BSD-2-Clause
5
 */
6
7
#include <LibWeb/Layout/ImageBox.h>
8
#include <LibWeb/Layout/SVGClipBox.h>
9
#include <LibWeb/Layout/SVGMaskBox.h>
10
#include <LibWeb/Painting/SVGClipPaintable.h>
11
#include <LibWeb/Painting/SVGGraphicsPaintable.h>
12
#include <LibWeb/Painting/StackingContext.h>
13
#include <LibWeb/SVG/SVGSVGElement.h>
14
15
namespace Web::Painting {
16
17
JS::NonnullGCPtr<SVGGraphicsPaintable> SVGGraphicsPaintable::create(Layout::SVGGraphicsBox const& layout_box)
18
0
{
19
0
    return layout_box.heap().allocate_without_realm<SVGGraphicsPaintable>(layout_box);
20
0
}
21
22
SVGGraphicsPaintable::SVGGraphicsPaintable(Layout::SVGGraphicsBox const& layout_box)
23
0
    : SVGPaintable(layout_box)
24
0
{
25
0
}
26
27
Layout::SVGGraphicsBox const& SVGGraphicsPaintable::layout_box() const
28
0
{
29
0
    return static_cast<Layout::SVGGraphicsBox const&>(layout_node());
30
0
}
31
32
}