Skip to content

Truly independent web browser

767 B
Raw Blame
/*
 * Copyright (c) 2025, Lucien Fiorini <[email protected]>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <LibWeb/SVG/SVGAnimatedLength.h>
#include <LibWeb/SVG/SVGElement.h>
#include <LibWeb/SVG/SVGFilterPrimitiveStandardAttributes.h>

namespace Web::SVG {

class SVGFEFloodElement final
    : public SVGElement
    , public SVGFilterPrimitiveStandardAttributes<SVGFEFloodElement> {
    WEB_WRAPPABLE(SVGFEFloodElement, SVGElement);
    GC_DECLARE_ALLOCATOR(SVGFEFloodElement);

public:
    virtual ~SVGFEFloodElement() override = default;

    Gfx::Color flood_color();
    float flood_opacity() const;

private:
    SVGFEFloodElement(DOM::Document&, DOM::QualifiedName);
    virtual void visit_edges(Cell::Visitor&) override;
};

}