SVGGElement.cpp 662 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #include <AK/StringBuilder.h>
  7. #include <LibWeb/DOM/Document.h>
  8. #include <LibWeb/Layout/SVGGraphicsBox.h>
  9. #include <LibWeb/SVG/SVGGElement.h>
  10. namespace Web::SVG {
  11. JS_DEFINE_ALLOCATOR(SVGGElement);
  12. SVGGElement::SVGGElement(DOM::Document& document, DOM::QualifiedName qualified_name)
  13. : SVGGraphicsElement(document, move(qualified_name))
  14. {
  15. }
  16. JS::GCPtr<Layout::Node> SVGGElement::create_layout_node(NonnullRefPtr<CSS::StyleProperties> style)
  17. {
  18. return heap().allocate_without_realm<Layout::SVGGraphicsBox>(document(), *this, move(style));
  19. }
  20. }