/* * Copyright (c) 2022, Tim Flynn * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include namespace Web::SVG { // https://www.w3.org/TR/SVG11/types.html#InterfaceSVGAnimatedLength class SVGAnimatedLength final : public Bindings::PlatformObject { WEB_PLATFORM_OBJECT(SVGAnimatedLength, Bindings::PlatformObject); public: static WebIDL::ExceptionOr> create(JS::Realm&, JS::NonnullGCPtr base_val, JS::NonnullGCPtr anim_val); virtual ~SVGAnimatedLength() override; JS::NonnullGCPtr base_val() const { return m_base_val; } JS::NonnullGCPtr anim_val() const { return m_anim_val; } private: SVGAnimatedLength(JS::Realm&, JS::NonnullGCPtr base_val, JS::NonnullGCPtr anim_val); virtual JS::ThrowCompletionOr initialize(JS::Realm&) override; virtual void visit_edges(Cell::Visitor&) override; JS::NonnullGCPtr m_base_val; JS::NonnullGCPtr m_anim_val; }; }