Coverage Report

Created: 2025-03-04 07:22

/src/serenity/Userland/Libraries/LibWeb/Painting/SVGForeignObjectPaintable.cpp
Line
Count
Source (jump to first uncovered line)
1
/*
2
 * Copyright (c) 2024, Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
3
 *
4
 * SPDX-License-Identifier: BSD-2-Clause
5
 */
6
7
#include <LibWeb/Painting/SVGForeignObjectPaintable.h>
8
#include <LibWeb/SVG/SVGSVGElement.h>
9
10
namespace Web::Painting {
11
12
JS_DEFINE_ALLOCATOR(SVGForeignObjectPaintable);
13
14
JS::NonnullGCPtr<SVGForeignObjectPaintable> SVGForeignObjectPaintable::create(Layout::SVGForeignObjectBox const& layout_box)
15
0
{
16
0
    return layout_box.heap().allocate_without_realm<SVGForeignObjectPaintable>(layout_box);
17
0
}
18
19
SVGForeignObjectPaintable::SVGForeignObjectPaintable(Layout::SVGForeignObjectBox const& layout_box)
20
0
    : PaintableWithLines(layout_box)
21
0
{
22
0
}
23
24
Layout::SVGForeignObjectBox const& SVGForeignObjectPaintable::layout_box() const
25
0
{
26
0
    return static_cast<Layout::SVGForeignObjectBox const&>(layout_node());
27
0
}
28
29
TraversalDecision SVGForeignObjectPaintable::hit_test(CSSPixelPoint position, HitTestType type, Function<TraversalDecision(HitTestResult)> const& callback) const
30
0
{
31
0
    return PaintableWithLines::hit_test(position, type, callback);
32
0
}
33
34
void SVGForeignObjectPaintable::paint(PaintContext& context, PaintPhase phase) const
35
0
{
36
0
    PaintableWithLines::paint(context, phase);
37
0
}
38
39
}