SVGGeometryElement.cpp 576 B

12345678910111213141516171819202122
  1. /*
  2. * Copyright (c) 2020, Matthew Olsson <mattco@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #include <LibWeb/Layout/SVGGeometryBox.h>
  7. #include <LibWeb/SVG/SVGGeometryElement.h>
  8. namespace Web::SVG {
  9. SVGGeometryElement::SVGGeometryElement(DOM::Document& document, DOM::QualifiedName qualified_name)
  10. : SVGGraphicsElement(document, move(qualified_name))
  11. {
  12. }
  13. RefPtr<Layout::Node> SVGGeometryElement::create_layout_node(NonnullRefPtr<CSS::StyleProperties> style)
  14. {
  15. return adopt_ref(*new Layout::SVGGeometryBox(document(), *this, move(style)));
  16. }
  17. }