SVGSVGBox.cpp 531 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/ReplacedBox.h>
  7. #include <LibWeb/Painting/SVGSVGPaintable.h>
  8. namespace Web::Layout {
  9. SVGSVGBox::SVGSVGBox(DOM::Document& document, SVG::SVGSVGElement& element, NonnullRefPtr<CSS::StyleProperties> properties)
  10. : ReplacedBox(document, element, move(properties))
  11. {
  12. }
  13. RefPtr<Painting::Paintable> SVGSVGBox::create_paintable() const
  14. {
  15. return Painting::SVGSVGPaintable::create(*this);
  16. }
  17. }