summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Painting/SVGSVGPaintable.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibWeb/Painting/SVGSVGPaintable.h')
-rw-r--r--Userland/Libraries/LibWeb/Painting/SVGSVGPaintable.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Painting/SVGSVGPaintable.h b/Userland/Libraries/LibWeb/Painting/SVGSVGPaintable.h
new file mode 100644
index 0000000000..1bd784d0ce
--- /dev/null
+++ b/Userland/Libraries/LibWeb/Painting/SVGSVGPaintable.h
@@ -0,0 +1,27 @@
+/*
+ * Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+
+#pragma once
+
+#include <LibWeb/Layout/SVGSVGBox.h>
+#include <LibWeb/Painting/SVGGraphicsPaintable.h>
+
+namespace Web::Painting {
+
+class SVGSVGPaintable : public SVGGraphicsPaintable {
+public:
+ static NonnullOwnPtr<SVGSVGPaintable> create(Layout::SVGSVGBox const&);
+
+ virtual void before_children_paint(PaintContext&, PaintPhase) const override;
+ virtual void after_children_paint(PaintContext&, PaintPhase) const override;
+
+ Layout::SVGSVGBox const& layout_box() const;
+
+protected:
+ SVGSVGPaintable(Layout::SVGSVGBox const&);
+};
+
+}