SVGSVGBox.h 675 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (c) 2020, Matthew Olsson <mattco@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWeb/Layout/ReplacedBox.h>
  8. #include <LibWeb/SVG/SVGSVGElement.h>
  9. namespace Web::Layout {
  10. class SVGSVGBox final : public ReplacedBox {
  11. public:
  12. SVGSVGBox(DOM::Document&, SVG::SVGSVGElement&, NonnullRefPtr<CSS::StyleProperties>);
  13. virtual ~SVGSVGBox() override = default;
  14. SVG::SVGSVGElement& dom_node() { return verify_cast<SVG::SVGSVGElement>(ReplacedBox::dom_node()); }
  15. virtual bool can_have_children() const override { return true; }
  16. virtual RefPtr<Painting::Paintable> create_paintable() const override;
  17. };
  18. }