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