2022-03-10 16:02:25 +03:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <LibWeb/Layout/SVGBox.h>
|
2022-03-11 01:13:37 +03:00
|
|
|
#include <LibWeb/Painting/PaintableBox.h>
|
2022-03-10 16:02:25 +03:00
|
|
|
|
|
|
|
namespace Web::Painting {
|
|
|
|
|
2022-03-19 00:13:26 +03:00
|
|
|
class SVGPaintable : public PaintableBox {
|
2022-03-10 16:02:25 +03:00
|
|
|
public:
|
2022-11-12 00:07:43 +03:00
|
|
|
virtual void before_children_paint(PaintContext&, PaintPhase) const override;
|
|
|
|
virtual void after_children_paint(PaintContext&, PaintPhase) const override;
|
2022-03-10 16:02:25 +03:00
|
|
|
|
|
|
|
Layout::SVGBox const& layout_box() const;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
SVGPaintable(Layout::SVGBox const&);
|
2022-03-24 18:06:43 +03:00
|
|
|
|
|
|
|
virtual Gfx::FloatRect compute_absolute_rect() const override;
|
2022-03-10 16:02:25 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|