mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-04 10:18:51 +00:00
We no longer access Bindings::FooWrapper anywhere for a Foo platform object, so these can be removed :^)
31 lines
658 B
C++
31 lines
658 B
C++
/*
|
|
* Copyright (c) 2022, Sam Atkins <atkinssj@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWeb/SVG/SVGGeometryElement.h>
|
|
|
|
namespace Web::SVG {
|
|
|
|
class SVGPolygonElement final : public SVGGeometryElement {
|
|
WEB_PLATFORM_OBJECT(SVGPolygonElement, SVGGeometryElement);
|
|
|
|
public:
|
|
virtual ~SVGPolygonElement() override = default;
|
|
|
|
virtual void parse_attribute(FlyString const& name, String const& value) override;
|
|
|
|
virtual Gfx::Path& get_path() override;
|
|
|
|
private:
|
|
SVGPolygonElement(DOM::Document&, DOM::QualifiedName);
|
|
|
|
Optional<Gfx::Path> m_path;
|
|
|
|
Vector<Gfx::FloatPoint> m_points;
|
|
};
|
|
|
|
}
|