SVGPathBox.h 677 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) 2020, Matthew Olsson <mattco@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWeb/Layout/SVGGraphicsBox.h>
  8. #include <LibWeb/SVG/SVGPathElement.h>
  9. namespace Web::Layout {
  10. class SVGPathBox final : public SVGGraphicsBox {
  11. public:
  12. SVGPathBox(DOM::Document&, SVG::SVGPathElement&, NonnullRefPtr<CSS::StyleProperties>);
  13. virtual ~SVGPathBox() override = default;
  14. SVG::SVGPathElement& dom_node() { return verify_cast<SVG::SVGPathElement>(SVGGraphicsBox::dom_node()); }
  15. virtual void prepare_for_replaced_layout() override;
  16. virtual void paint(PaintContext& context, PaintPhase phase) override;
  17. };
  18. }