2024-03-31 14:54:00 +01:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2024, MacDue <macdue@dueutil.tech>
|
2025-11-05 15:20:53 +01:00
|
|
|
* Copyright (c) 2025, Jelle Raaijmakers <jelle@ladybird.org>
|
2024-03-31 14:54:00 +01:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2025-11-05 15:20:53 +01:00
|
|
|
#include <LibWeb/SVG/SVGList.h>
|
2024-03-31 14:54:00 +01:00
|
|
|
#include <LibWeb/SVG/SVGTransform.h>
|
|
|
|
|
|
|
|
|
|
namespace Web::SVG {
|
|
|
|
|
|
|
|
|
|
// https://svgwg.org/svg2-draft/single-page.html#coords-InterfaceSVGTransformList
|
2025-11-05 15:20:53 +01:00
|
|
|
class SVGTransformList final
|
|
|
|
|
: public Bindings::PlatformObject
|
|
|
|
|
, public SVGList<GC::Ref<SVGTransform>> {
|
2024-03-31 14:54:00 +01:00
|
|
|
WEB_PLATFORM_OBJECT(SVGTransformList, Bindings::PlatformObject);
|
2024-11-15 04:01:23 +13:00
|
|
|
GC_DECLARE_ALLOCATOR(SVGTransformList);
|
2024-03-31 14:54:00 +01:00
|
|
|
|
|
|
|
|
public:
|
2025-11-05 15:20:53 +01:00
|
|
|
[[nodiscard]] static GC::Ref<SVGTransformList> create(JS::Realm& realm, Vector<GC::Ref<SVGTransform>>, ReadOnlyList);
|
|
|
|
|
[[nodiscard]] static GC::Ref<SVGTransformList> create(JS::Realm& realm, ReadOnlyList);
|
|
|
|
|
virtual ~SVGTransformList() override = default;
|
2024-03-31 14:54:00 +01:00
|
|
|
|
|
|
|
|
private:
|
2025-11-05 15:20:53 +01:00
|
|
|
SVGTransformList(JS::Realm&, Vector<GC::Ref<SVGTransform>>, ReadOnlyList);
|
|
|
|
|
SVGTransformList(JS::Realm&, ReadOnlyList);
|
2024-03-31 14:54:00 +01:00
|
|
|
|
2025-11-05 15:20:53 +01:00
|
|
|
virtual void initialize(JS::Realm&) override;
|
|
|
|
|
virtual void visit_edges(Visitor&) override;
|
2024-03-31 14:54:00 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|