/* * Copyright (c) 2024, MacDue * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include namespace Web::Layout { class SVGClipBox : public SVGBox { GC_CELL(SVGClipBox, SVGBox); GC_DECLARE_ALLOCATOR(SVGClipBox); public: SVGClipBox(DOM::Document&, SVG::SVGClipPathElement&, CSS::StyleProperties); virtual ~SVGClipBox() override = default; SVG::SVGClipPathElement& dom_node() { return verify_cast(SVGBox::dom_node()); } SVG::SVGClipPathElement const& dom_node() const { return verify_cast(SVGBox::dom_node()); } virtual GC::Ptr create_paintable() const override; }; }