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
|
|
|
*/
|
|
|
|
|
2020-11-22 15:53:01 +01:00
|
|
|
#include <LibWeb/Layout/SVGGraphicsBox.h>
|
2023-04-18 18:56:06 +02:00
|
|
|
#include <LibWeb/Painting/SVGGraphicsPaintable.h>
|
2022-03-10 02:13:28 +01:00
|
|
|
#include <LibWeb/Painting/StackingContext.h>
|
2020-10-05 16:14:36 -07:00
|
|
|
|
2020-11-22 15:53:01 +01:00
|
|
|
namespace Web::Layout {
|
2020-10-05 16:14:36 -07:00
|
|
|
|
2024-10-26 17:42:27 +02:00
|
|
|
SVGGraphicsBox::SVGGraphicsBox(DOM::Document& document, SVG::SVGGraphicsElement& element, CSS::StyleProperties properties)
|
2020-11-22 15:53:01 +01:00
|
|
|
: SVGBox(document, element, properties)
|
2020-10-05 16:14:36 -07:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2023-04-18 18:56:06 +02:00
|
|
|
JS::GCPtr<Painting::Paintable> SVGGraphicsBox::create_paintable() const
|
|
|
|
{
|
|
|
|
return Painting::SVGGraphicsPaintable::create(*this);
|
|
|
|
}
|
|
|
|
|
2020-10-05 16:14:36 -07:00
|
|
|
}
|