2020-10-05 16:14:36 -07:00
|
|
|
/*
|
2021-04-22 16:53:07 -07:00
|
|
|
* Copyright (c) 2020, Matthew Olsson <mattco@serenityos.org>
|
2020-10-05 16:14:36 -07:00
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-10-05 16:14:36 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2020-11-22 15:53:01 +01:00
|
|
|
#include <LibWeb/Layout/SVGGraphicsBox.h>
|
2020-10-05 16:14:36 -07:00
|
|
|
#include <LibWeb/SVG/SVGSVGElement.h>
|
|
|
|
|
|
2020-11-22 15:53:01 +01:00
|
|
|
namespace Web::Layout {
|
2020-10-05 16:14:36 -07:00
|
|
|
|
2020-11-22 15:53:01 +01:00
|
|
|
class SVGSVGBox final : public SVGGraphicsBox {
|
2020-10-05 16:14:36 -07:00
|
|
|
public:
|
2020-11-22 15:53:01 +01:00
|
|
|
SVGSVGBox(DOM::Document&, SVG::SVGSVGElement&, NonnullRefPtr<CSS::StyleProperties>);
|
|
|
|
|
virtual ~SVGSVGBox() override = default;
|
2020-10-05 16:14:36 -07:00
|
|
|
|
2021-06-24 19:53:42 +02:00
|
|
|
SVG::SVGSVGElement& dom_node() { return verify_cast<SVG::SVGSVGElement>(SVGGraphicsBox::dom_node()); }
|
2020-10-05 16:14:36 -07:00
|
|
|
|
2020-11-22 15:53:01 +01:00
|
|
|
virtual void before_children_paint(PaintContext& context, PaintPhase phase) override;
|
2020-11-22 13:38:18 +01:00
|
|
|
virtual void after_children_paint(PaintContext& context, PaintPhase phase) override;
|
2020-10-05 16:14:36 -07:00
|
|
|
|
2020-11-29 15:29:10 +01:00
|
|
|
virtual bool can_have_children() const override { return true; }
|
2020-10-05 16:14:36 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|