/* * Copyright (c) 2026, Tim Ledbetter * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include namespace Web::Layout { class SVGPatternBox final : public SVGBox { GC_CELL(SVGPatternBox, SVGBox); GC_DECLARE_ALLOCATOR(SVGPatternBox); public: SVGPatternBox(DOM::Document&, SVG::SVGPatternElement&, GC::Ref); virtual ~SVGPatternBox() override = default; SVG::SVGPatternElement& dom_node() { return as(SVGBox::dom_node()); } SVG::SVGPatternElement const& dom_node() const { return as(SVGBox::dom_node()); } virtual GC::Ptr create_paintable() const override; private: virtual bool is_svg_pattern_box() const final { return true; } }; template<> inline bool Node::fast_is() const { return is_svg_pattern_box(); } }