SVGPaintable.h 658 B

1234567891011121314151617181920212223242526272829
  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/SVGBox.h>
  8. #include <LibWeb/Painting/PaintableBox.h>
  9. namespace Web::Painting {
  10. class SVGPaintable : public PaintableBox {
  11. JS_CELL(SVGPaintable, PaintableBox);
  12. public:
  13. virtual void before_children_paint(PaintContext&, PaintPhase) const override;
  14. virtual void after_children_paint(PaintContext&, PaintPhase) const override;
  15. Layout::SVGBox const& layout_box() const;
  16. protected:
  17. SVGPaintable(Layout::SVGBox const&);
  18. virtual CSSPixelRect compute_absolute_rect() const override;
  19. };
  20. }