SVGSVGPaintable.h 642 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWeb/Layout/SVGSVGBox.h>
  8. #include <LibWeb/Painting/PaintableBox.h>
  9. namespace Web::Painting {
  10. class SVGSVGPaintable : public PaintableBox {
  11. public:
  12. static NonnullRefPtr<SVGSVGPaintable> create(Layout::SVGSVGBox const&);
  13. virtual void before_children_paint(PaintContext&, PaintPhase) const override;
  14. virtual void after_children_paint(PaintContext&, PaintPhase) const override;
  15. Layout::SVGSVGBox const& layout_box() const;
  16. protected:
  17. SVGSVGPaintable(Layout::SVGSVGBox const&);
  18. };
  19. }