/* * Copyright (c) 2025, Jelle Raaijmakers * * SPDX-License-Identifier: BSD-2-Clause */ #include #include #include namespace Web::SVG { GC_DEFINE_ALLOCATOR(SVGLengthList); GC::Ref SVGLengthList::create(JS::Realm& realm, Vector> items, ReadOnlyList read_only) { return realm.create(realm, move(items), read_only); } GC::Ref SVGLengthList::create(JS::Realm& realm, ReadOnlyList read_only) { return realm.create(realm, read_only); } SVGLengthList::SVGLengthList(JS::Realm& realm, Vector> items, ReadOnlyList read_only) : Bindings::PlatformObject(realm) , SVGList(realm, move(items), read_only) { } SVGLengthList::SVGLengthList(JS::Realm& realm, ReadOnlyList read_only) : Bindings::PlatformObject(realm) , SVGList(realm, read_only) { } void SVGLengthList::initialize(JS::Realm& realm) { WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGLengthList); Base::initialize(realm); } void SVGLengthList::visit_edges(Visitor& visitor) { Base::visit_edges(visitor); SVGList::visit_edges(visitor); } }