SVGGraphicsBox.h 699 B

123456789101112131415161718192021222324
  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/SVGBox.h>
  8. #include <LibWeb/SVG/SVGElement.h>
  9. #include <LibWeb/SVG/SVGGraphicsElement.h>
  10. namespace Web::Layout {
  11. class SVGGraphicsBox : public SVGBox {
  12. public:
  13. SVGGraphicsBox(DOM::Document&, SVG::SVGGraphicsElement&, NonnullRefPtr<CSS::StyleProperties>);
  14. virtual ~SVGGraphicsBox() override = default;
  15. SVG::SVGGraphicsElement& dom_node() { return verify_cast<SVG::SVGGraphicsElement>(SVGBox::dom_node()); }
  16. SVG::SVGGraphicsElement const& dom_node() const { return verify_cast<SVG::SVGGraphicsElement>(SVGBox::dom_node()); }
  17. };
  18. }