SVGGeometryBox.cpp 704 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) 2020, Matthew Olsson <matthewcolsson@gmail.com>
  3. * Copyright (c) 2022, Tobias Christiansen <tobyase@serenityos.org>
  4. *
  5. * SPDX-License-Identifier: BSD-2-Clause
  6. */
  7. #include <LibWeb/Layout/SVGGeometryBox.h>
  8. #include <LibWeb/Painting/SVGPathPaintable.h>
  9. #include <LibWeb/SVG/SVGPathElement.h>
  10. #include <LibWeb/SVG/SVGSVGElement.h>
  11. namespace Web::Layout {
  12. SVGGeometryBox::SVGGeometryBox(DOM::Document& document, SVG::SVGGeometryElement& element, NonnullRefPtr<CSS::StyleProperties> properties)
  13. : SVGGraphicsBox(document, element, properties)
  14. {
  15. }
  16. JS::GCPtr<Painting::Paintable> SVGGeometryBox::create_paintable() const
  17. {
  18. return Painting::SVGPathPaintable::create(*this);
  19. }
  20. }