/* * Copyright (c) 2020, Matthew Olsson * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include namespace Web::Layout { class SVGSVGBox final : public SVGGraphicsBox { public: SVGSVGBox(DOM::Document&, SVG::SVGSVGElement&, NonnullRefPtr); virtual ~SVGSVGBox() override = default; SVG::SVGSVGElement& dom_node() { return verify_cast(SVGGraphicsBox::dom_node()); } virtual void prepare_for_replaced_layout() override; virtual void before_children_paint(PaintContext& context, PaintPhase phase) override; virtual void after_children_paint(PaintContext& context, PaintPhase phase) override; virtual bool can_have_children() const override { return true; } }; }