2020-07-20 03:01:53 -03:00
|
|
|
/*
|
2021-04-22 20:53:07 -03:00
|
|
|
* Copyright (c) 2020, Matthew Olsson <mattco@serenityos.org>
|
2020-07-20 03:01:53 -03:00
|
|
|
*
|
2021-04-22 05:24:48 -03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-07-20 03:01:53 -03:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2020-11-22 11:53:01 -03:00
|
|
|
#include <LibWeb/Layout/SVGBox.h>
|
2020-10-05 20:14:36 -03:00
|
|
|
#include <LibWeb/SVG/SVGElement.h>
|
|
|
|
|
#include <LibWeb/SVG/SVGGraphicsElement.h>
|
2020-07-20 03:01:53 -03:00
|
|
|
|
2020-11-22 11:53:01 -03:00
|
|
|
namespace Web::Layout {
|
2020-07-20 03:01:53 -03:00
|
|
|
|
2020-11-22 11:53:01 -03:00
|
|
|
class SVGGraphicsBox : public SVGBox {
|
2020-07-20 03:01:53 -03:00
|
|
|
public:
|
2020-11-22 11:53:01 -03:00
|
|
|
SVGGraphicsBox(DOM::Document&, SVG::SVGGraphicsElement&, NonnullRefPtr<CSS::StyleProperties>);
|
|
|
|
|
virtual ~SVGGraphicsBox() override = default;
|
2020-07-20 03:01:53 -03:00
|
|
|
|
2021-09-17 18:12:16 -03:00
|
|
|
SVG::SVGGraphicsElement& dom_node() { return verify_cast<SVG::SVGGraphicsElement>(SVGBox::dom_node()); }
|
|
|
|
|
|
2020-10-05 20:14:36 -03:00
|
|
|
virtual void before_children_paint(PaintContext& context, PaintPhase phase) override;
|
2020-07-20 03:01:53 -03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|