Files
ladybird/Libraries/LibWeb/SVG/SVGFEBlendElement.h
Aliaksandr Kalenik edf42ec9f9 LibWeb: Remove Document.h include from SVGElement.h
This reduces the recompilation cascade when Document.h is modified,
cutting off the transitive path through ~30 SVG element headers.

Move the inline try_resolve_url_to() template body in
SVGGraphicsElement.h to a non-template helper in the .cpp file to
avoid needing Document.h and ShadowRoot.h in the header.

Add explicit includes to files that relied on the transitive dependency.
2026-02-08 18:51:13 +01:00

47 lines
1.3 KiB
C++

/*
* Copyright (c) 2025, Lucien Fiorini <lucienfiorini@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibGfx/CompositingAndBlendingOperator.h>
#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();
Gfx::CompositingAndBlendingOperator mode() const;
GC::Ref<SVGAnimatedEnumeration> mode_for_bindings() const;
private:
SVGFEBlendElement(DOM::Document&, DOM::QualifiedName);
virtual void initialize(JS::Realm&) override;
virtual void visit_edges(Cell::Visitor&) override;
virtual void attribute_changed(FlyString const& name, Optional<String> const& old_value, Optional<String> const& new_value, Optional<FlyString> const& namespace_) override;
GC::Ptr<SVGAnimatedString> m_in1;
GC::Ptr<SVGAnimatedString> m_in2;
Optional<CSS::MixBlendMode> m_mode;
};
}