SVGSVGBox.h 846 B

1234567891011121314151617181920212223242526272829
  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/SVGGraphicsBox.h>
  8. #include <LibWeb/SVG/SVGSVGElement.h>
  9. namespace Web::Layout {
  10. class SVGSVGBox final : public SVGGraphicsBox {
  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>(SVGGraphicsBox::dom_node()); }
  15. virtual void prepare_for_replaced_layout() override;
  16. virtual void before_children_paint(PaintContext& context, PaintPhase phase) override;
  17. virtual void after_children_paint(PaintContext& context, PaintPhase phase) override;
  18. virtual bool can_have_children() const override { return true; }
  19. };
  20. }