/* * Copyright (c) 2022, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include namespace Web::Painting { class SVGGeometryPaintable final : public SVGGraphicsPaintable { JS_CELL(SVGGeometryPaintable, SVGGraphicsPaintable); public: static JS::NonnullGCPtr create(Layout::SVGGeometryBox const&); virtual void paint(PaintContext&, PaintPhase) const override; Layout::SVGGeometryBox const& layout_box() const; protected: SVGGeometryPaintable(Layout::SVGGeometryBox const&); }; }