mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb/SVG: Add FEBlendElement
This commit is contained in:
parent
d3684a36b0
commit
f8b12614df
Notes:
github-actions[bot]
2025-07-09 17:08:39 +00:00
Author: https://github.com/ananas-dev
Commit: f8b12614df
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5028
Reviewed-by: https://github.com/gmta ✅
10 changed files with 139 additions and 0 deletions
39
Libraries/LibWeb/SVG/SVGFEBlendElement.h
Normal file
39
Libraries/LibWeb/SVG/SVGFEBlendElement.h
Normal file
|
@ -0,0 +1,39 @@
|
|||
/*
|
||||
* Copyright (c) 2025, Lucien Fiorini <lucienfiorini@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/SVG/AttributeParser.h>
|
||||
#include <LibWeb/SVG/SVGAnimatedLength.h>
|
||||
#include <LibWeb/SVG/SVGElement.h>
|
||||
#include <LibWeb/SVG/SVGFilterPrimitiveStandardAttributes.h>
|
||||
|
||||
namespace Web::SVG {
|
||||
|
||||
class SVGFEBlendElement final
|
||||
: public SVGElement
|
||||
, public SVGFilterPrimitiveStandardAttributes<SVGFEBlendElement> {
|
||||
WEB_PLATFORM_OBJECT(SVGFEBlendElement, SVGElement);
|
||||
GC_DECLARE_ALLOCATOR(SVGFEBlendElement);
|
||||
|
||||
public:
|
||||
virtual ~SVGFEBlendElement() override = default;
|
||||
|
||||
GC::Ref<SVGAnimatedString> in1();
|
||||
GC::Ref<SVGAnimatedString> in2();
|
||||
GC::Ref<SVGAnimatedEnumeration> mode() const;
|
||||
|
||||
private:
|
||||
SVGFEBlendElement(DOM::Document&, DOM::QualifiedName);
|
||||
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
virtual void visit_edges(Cell::Visitor&) override;
|
||||
|
||||
GC::Ptr<SVGAnimatedString> m_in1;
|
||||
GC::Ptr<SVGAnimatedString> m_in2;
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue