/* * Copyright (c) 2020, Matthew Olsson * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include namespace Web::Layout { class SVGPathBox final : public SVGGraphicsBox { public: SVGPathBox(DOM::Document&, SVG::SVGPathElement&, NonnullRefPtr); virtual ~SVGPathBox() override = default; SVG::SVGPathElement& dom_node() { return downcast(SVGGraphicsBox::dom_node()); } virtual void prepare_for_replaced_layout() override; virtual void paint(PaintContext& context, PaintPhase phase) override; }; }