Coverage Report

Created: 2025-08-28 06:26

/src/serenity/Userland/Libraries/LibWeb/SVG/SVGAnimatedLength.h
Line
Count
Source (jump to first uncovered line)
1
/*
2
 * Copyright (c) 2022, Tim Flynn <trflynn89@serenityos.org>
3
 *
4
 * SPDX-License-Identifier: BSD-2-Clause
5
 */
6
7
#pragma once
8
9
#include <LibWeb/Bindings/PlatformObject.h>
10
#include <LibWeb/SVG/SVGLength.h>
11
12
namespace Web::SVG {
13
14
// https://www.w3.org/TR/SVG11/types.html#InterfaceSVGAnimatedLength
15
class SVGAnimatedLength final : public Bindings::PlatformObject {
16
    WEB_PLATFORM_OBJECT(SVGAnimatedLength, Bindings::PlatformObject);
17
    JS_DECLARE_ALLOCATOR(SVGAnimatedLength);
18
19
public:
20
    [[nodiscard]] static JS::NonnullGCPtr<SVGAnimatedLength> create(JS::Realm&, JS::NonnullGCPtr<SVGLength> base_val, JS::NonnullGCPtr<SVGLength> anim_val);
21
    virtual ~SVGAnimatedLength() override;
22
23
0
    JS::NonnullGCPtr<SVGLength> base_val() const { return m_base_val; }
24
0
    JS::NonnullGCPtr<SVGLength> anim_val() const { return m_anim_val; }
25
26
private:
27
    SVGAnimatedLength(JS::Realm&, JS::NonnullGCPtr<SVGLength> base_val, JS::NonnullGCPtr<SVGLength> anim_val);
28
29
    virtual void initialize(JS::Realm&) override;
30
    virtual void visit_edges(Cell::Visitor&) override;
31
32
    JS::NonnullGCPtr<SVGLength> m_base_val;
33
    JS::NonnullGCPtr<SVGLength> m_anim_val;
34
};
35
36
}