Coverage Report

Created: 2026-05-16 07:03

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/serenity/Userland/Libraries/LibWeb/SVG/SVGTransform.cpp
Line
Count
Source
1
/*
2
 * Copyright (c) 2024, MacDue <macdue@dueutil.tech>
3
 * Copyright (c) 2024, Jamie Mansfield <jmansfield@cadixdev.org>
4
 *
5
 * SPDX-License-Identifier: BSD-2-Clause
6
 */
7
8
#include <LibWeb/Bindings/Intrinsics.h>
9
#include <LibWeb/Bindings/SVGTransformPrototype.h>
10
#include <LibWeb/SVG/SVGTransform.h>
11
12
namespace Web::SVG {
13
14
JS_DEFINE_ALLOCATOR(SVGTransform);
15
16
JS::NonnullGCPtr<SVGTransform> SVGTransform::create(JS::Realm& realm)
17
0
{
18
0
    return realm.heap().allocate<SVGTransform>(realm, realm);
19
0
}
20
21
SVGTransform::SVGTransform(JS::Realm& realm)
22
0
    : PlatformObject(realm)
23
0
{
24
0
}
25
26
0
SVGTransform::~SVGTransform() = default;
27
28
void SVGTransform::initialize(JS::Realm& realm)
29
0
{
30
0
    Base::initialize(realm);
31
0
    WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGTransform);
32
0
}
33
34
// https://svgwg.org/svg2-draft/single-page.html#coords-__svg__SVGTransform__type
35
SVGTransform::Type SVGTransform::type()
36
0
{
37
0
    dbgln("FIXME: Implement SVGTransform::type()");
38
0
    return SVGTransform::Type::Unknown;
39
0
}
40
41
// https://svgwg.org/svg2-draft/single-page.html#coords-__svg__SVGTransform__angle
42
float SVGTransform::angle()
43
0
{
44
0
    dbgln("FIXME: Implement SVGTransform::angle()");
45
0
    return 0;
46
0
}
47
48
// https://svgwg.org/svg2-draft/single-page.html#coords-__svg__SVGTransform__setTranslate
49
void SVGTransform::set_translate(float tx, float ty)
50
0
{
51
0
    (void)tx;
52
0
    (void)ty;
53
0
    dbgln("FIXME: Implement SVGTransform::set_translate(float tx, float ty)");
54
0
}
55
56
// https://svgwg.org/svg2-draft/single-page.html#coords-__svg__SVGTransform__setScale
57
void SVGTransform::set_scale(float sx, float sy)
58
0
{
59
0
    (void)sx;
60
0
    (void)sy;
61
0
    dbgln("FIXME: Implement SVGTransform::set_scale(float sx, float sy)");
62
0
}
63
64
// https://svgwg.org/svg2-draft/single-page.html#coords-__svg__SVGTransform__setRotate
65
void SVGTransform::set_rotate(float angle, float cx, float cy)
66
0
{
67
0
    (void)angle;
68
0
    (void)cx;
69
0
    (void)cy;
70
0
    dbgln("FIXME: Implement SVGTransform::set_rotate(float angle, float cx, float cy)");
71
0
}
72
73
// https://svgwg.org/svg2-draft/single-page.html#coords-__svg__SVGTransform__setSkewX
74
void SVGTransform::set_skew_x(float angle)
75
0
{
76
0
    (void)angle;
77
0
    dbgln("FIXME: Implement SVGTransform::set_skew_x(float angle)");
78
0
}
79
80
// https://svgwg.org/svg2-draft/single-page.html#coords-__svg__SVGTransform__setSkewY
81
void SVGTransform::set_skew_y(float angle)
82
0
{
83
0
    (void)angle;
84
0
    dbgln("FIXME: Implement SVGTransform::set_skew_y(float angle)");
85
0
}
86
87
}