/* * Copyright (c) 2025, Jelle Raaijmakers * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include namespace Web::SVG { // https://svgwg.org/svg2-draft/types.html#InterfaceSVGAnimatedLengthList class SVGAnimatedLengthList final : public Bindings::PlatformObject { WEB_PLATFORM_OBJECT(SVGAnimatedLengthList, Bindings::PlatformObject); GC_DECLARE_ALLOCATOR(SVGAnimatedLengthList); public: [[nodiscard]] static GC::Ref create(JS::Realm&, GC::Ref); virtual ~SVGAnimatedLengthList() override = default; // https://svgwg.org/svg2-draft/types.html#__svg__SVGAnimatedLengthList__baseVal GC::Ref base_val() const { return m_base_val; } // https://svgwg.org/svg2-draft/types.html#__svg__SVGAnimatedLengthList__animVal GC::Ref anim_val() const { return m_base_val; } private: SVGAnimatedLengthList(JS::Realm&, GC::Ref); virtual void initialize(JS::Realm&) override; virtual void visit_edges(Visitor&) override; GC::Ref m_base_val; }; }