SVGGraphicsPaintable.h 559 B

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