SVGGeometryBox.cpp 727 B

123456789101112131415161718192021222324252627
  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. JS_DEFINE_ALLOCATOR(SVGGeometryBox);
  13. SVGGeometryBox::SVGGeometryBox(DOM::Document& document, SVG::SVGGeometryElement& element, CSS::StyleProperties properties)
  14. : SVGGraphicsBox(document, element, properties)
  15. {
  16. }
  17. JS::GCPtr<Painting::Paintable> SVGGeometryBox::create_paintable() const
  18. {
  19. return Painting::SVGPathPaintable::create(*this);
  20. }
  21. }