/* * Copyright (c) 2024, Kostya Farber * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include namespace Web::Layout { class LegendBox final : public BlockContainer { GC_CELL(LegendBox, BlockContainer); GC_DECLARE_ALLOCATOR(LegendBox); public: LegendBox(DOM::Document&, DOM::Element&, GC::Ref); virtual ~LegendBox() override; DOM::Element& dom_node() { return static_cast(*Box::dom_node()); } DOM::Element const& dom_node() const { return static_cast(*Box::dom_node()); } private: virtual bool is_legend_box() const final { return true; } }; template<> inline bool Node::fast_is() const { return is_legend_box(); } }