mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-15 15:42:52 +00:00
Resulting in a massive rename across almost everywhere! Alongside the namespace change, we now have the following names: * JS::NonnullGCPtr -> GC::Ref * JS::GCPtr -> GC::Ptr * JS::HeapFunction -> GC::Function * JS::CellImpl -> GC::Cell * JS::Handle -> GC::Root
43 lines
1.2 KiB
C++
43 lines
1.2 KiB
C++
/*
|
|
* Copyright (c) 2024, MacDue <macdue@dueutil.tech>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWeb/Bindings/PlatformObject.h>
|
|
#include <LibWeb/SVG/SVGTransformList.h>
|
|
|
|
namespace Web::SVG {
|
|
|
|
// https://svgwg.org/svg2-draft/single-page.html#coords-InterfaceSVGTransformList
|
|
class SVGAnimatedTransformList final : public Bindings::PlatformObject {
|
|
WEB_PLATFORM_OBJECT(SVGAnimatedTransformList, Bindings::PlatformObject);
|
|
GC_DECLARE_ALLOCATOR(SVGAnimatedTransformList);
|
|
|
|
public:
|
|
[[nodiscard]] static GC::Ref<SVGAnimatedTransformList> create(JS::Realm& realm, GC::Ref<SVGTransformList> base_val, GC::Ref<SVGTransformList> anim_val);
|
|
virtual ~SVGAnimatedTransformList() override;
|
|
|
|
GC::Ref<SVGTransformList> base_val() const
|
|
{
|
|
return m_anim_val;
|
|
}
|
|
|
|
GC::Ref<SVGTransformList> anim_val() const
|
|
{
|
|
return m_anim_val;
|
|
}
|
|
|
|
private:
|
|
SVGAnimatedTransformList(JS::Realm& realm, GC::Ref<SVGTransformList> base_val, GC::Ref<SVGTransformList> anim_val);
|
|
|
|
virtual void initialize(JS::Realm& realm) override;
|
|
virtual void visit_edges(Cell::Visitor& visitor) override;
|
|
|
|
GC::Ref<SVGTransformList> m_base_val;
|
|
GC::Ref<SVGTransformList> m_anim_val;
|
|
};
|
|
|
|
}
|