SVGForeignObjectBox.cpp 677 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) 2024, Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #include <LibWeb/Layout/SVGForeignObjectBox.h>
  7. #include <LibWeb/Painting/SVGForeignObjectPaintable.h>
  8. #include <LibWeb/SVG/SVGSVGElement.h>
  9. namespace Web::Layout {
  10. JS_DEFINE_ALLOCATOR(SVGForeignObjectBox);
  11. SVGForeignObjectBox::SVGForeignObjectBox(DOM::Document& document, SVG::SVGForeignObjectElement& element, CSS::StyleProperties properties)
  12. : BlockContainer(document, &element, properties)
  13. {
  14. }
  15. JS::GCPtr<Painting::Paintable> SVGForeignObjectBox::create_paintable() const
  16. {
  17. return Painting::SVGForeignObjectPaintable::create(*this);
  18. }
  19. }