2024-03-31 15:21:00 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2024, MacDue <macdue@dueutil.tech>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <LibWeb/Bindings/Intrinsics.h>
|
2024-04-27 12:09:58 +12:00
|
|
|
#include <LibWeb/Bindings/SVGAnimatedTransformListPrototype.h>
|
2024-03-31 15:21:00 +01:00
|
|
|
#include <LibWeb/SVG/SVGAnimatedTransformList.h>
|
|
|
|
|
|
|
|
namespace Web::SVG {
|
|
|
|
|
2024-11-15 04:01:23 +13:00
|
|
|
GC_DEFINE_ALLOCATOR(SVGAnimatedTransformList);
|
2024-03-31 15:21:00 +01:00
|
|
|
|
2024-11-15 04:01:23 +13:00
|
|
|
GC::Ref<SVGAnimatedTransformList> SVGAnimatedTransformList::create(JS::Realm& realm, GC::Ref<SVGTransformList> base_val, GC::Ref<SVGTransformList> anim_val)
|
2024-03-31 15:21:00 +01:00
|
|
|
{
|
2024-11-14 05:50:17 +13:00
|
|
|
return realm.create<SVGAnimatedTransformList>(realm, base_val, anim_val);
|
2024-03-31 15:21:00 +01:00
|
|
|
}
|
|
|
|
|
2024-11-15 04:01:23 +13:00
|
|
|
SVGAnimatedTransformList::SVGAnimatedTransformList(JS::Realm& realm, GC::Ref<SVGTransformList> base_val, GC::Ref<SVGTransformList> anim_val)
|
2024-03-31 15:21:00 +01:00
|
|
|
: PlatformObject(realm)
|
|
|
|
, m_base_val(base_val)
|
|
|
|
, m_anim_val(anim_val) {};
|
|
|
|
|
|
|
|
SVGAnimatedTransformList::~SVGAnimatedTransformList() = default;
|
|
|
|
|
|
|
|
void SVGAnimatedTransformList::initialize(JS::Realm& realm)
|
|
|
|
{
|
|
|
|
Base::initialize(realm);
|
|
|
|
WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGAnimatedTransformList);
|
|
|
|
}
|
|
|
|
|
|
|
|
void SVGAnimatedTransformList::visit_edges(Cell::Visitor& visitor)
|
|
|
|
{
|
|
|
|
Base::visit_edges(visitor);
|
|
|
|
visitor.visit(m_base_val);
|
|
|
|
visitor.visit(m_anim_val);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|