LibWeb: Add SVGFEComponentTransferElement

This commit is contained in:
Jelle Raaijmakers 2025-11-05 10:32:56 +01:00 committed by Jelle Raaijmakers
parent c0630c700f
commit 03a8de566b
Notes: github-actions[bot] 2025-11-09 00:24:05 +00:00
11 changed files with 139 additions and 41 deletions

View file

@ -0,0 +1,36 @@
/*
* Copyright (c) 2025, Jelle Raaijmakers <jelle@ladybird.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibWeb/SVG/SVGAnimatedString.h>
#include <LibWeb/SVG/SVGElement.h>
#include <LibWeb/SVG/SVGFilterPrimitiveStandardAttributes.h>
namespace Web::SVG {
// https://www.w3.org/TR/filter-effects-1/#InterfaceSVGFEComponentTransferElement
class SVGFEComponentTransferElement final
: public SVGElement
, public SVGFilterPrimitiveStandardAttributes<SVGFEComponentTransferElement> {
WEB_PLATFORM_OBJECT(SVGFEComponentTransferElement, SVGElement);
GC_DECLARE_ALLOCATOR(SVGFEComponentTransferElement);
public:
virtual ~SVGFEComponentTransferElement() override = default;
GC::Ref<SVGAnimatedString> in1();
private:
SVGFEComponentTransferElement(DOM::Document&, DOM::QualifiedName);
virtual void initialize(JS::Realm&) override;
virtual void visit_edges(Cell::Visitor&) override;
GC::Ptr<SVGAnimatedString> m_in1;
};
}