Truly independent web browser
/*
* Copyright (c) 2026, Sam Atkins <[email protected]>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibWeb/SVG/SVGGraphicsElement.h>
namespace Web::SVG {
// https://svgwg.org/svg2-draft/struct.html#SwitchElement
class SVGSwitchElement final : public SVGGraphicsElement {
WEB_WRAPPABLE(SVGSwitchElement, SVGGraphicsElement);
GC_DECLARE_ALLOCATOR(SVGSwitchElement);
public:
virtual ~SVGSwitchElement() override;
virtual CSS::ElementBoxKind box_kind() const override;
private:
SVGSwitchElement(DOM::Document&, DOM::QualifiedName);
virtual bool is_svg_switch_element() const override { return true; }
};
}
namespace Web::DOM {
template<>
inline bool Node::fast_is<SVG::SVGSwitchElement>() const { return is_svg_switch_element(); }
}