Coverage Report

Created: 2025-03-04 07:22

/src/serenity/Userland/Libraries/LibWeb/SVG/SVGPolygonElement.h
Line
Count
Source (jump to first uncovered line)
1
/*
2
 * Copyright (c) 2022, Sam Atkins <atkinssj@serenityos.org>
3
 *
4
 * SPDX-License-Identifier: BSD-2-Clause
5
 */
6
7
#pragma once
8
9
#include <LibWeb/SVG/SVGGeometryElement.h>
10
11
namespace Web::SVG {
12
13
class SVGPolygonElement final : public SVGGeometryElement {
14
    WEB_PLATFORM_OBJECT(SVGPolygonElement, SVGGeometryElement);
15
    JS_DECLARE_ALLOCATOR(SVGPolygonElement);
16
17
public:
18
0
    virtual ~SVGPolygonElement() override = default;
19
20
    virtual void attribute_changed(FlyString const& name, Optional<String> const& old_value, Optional<String> const& value) override;
21
22
    virtual Gfx::Path get_path(CSSPixelSize viewport_size) override;
23
24
private:
25
    SVGPolygonElement(DOM::Document&, DOM::QualifiedName);
26
27
    virtual void initialize(JS::Realm&) override;
28
29
    Vector<Gfx::FloatPoint> m_points;
30
};
31
32
}