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-12-20 16:35:12 +01:00
|
|
|
SVGGraphicsBox::SVGGraphicsBox(DOM::Document& document, SVG::SVGGraphicsElement& element, GC::Ref<CSS::ComputedProperties> style)
|
|
|
|
: SVGBox(document, element, style)
|
2020-10-05 16:14:36 -07:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2024-11-15 04:01:23 +13:00
|
|
|
GC::Ptr<Painting::Paintable> SVGGraphicsBox::create_paintable() const
|
2023-04-18 18:56:06 +02:00
|
|
|
{
|
|
|
|
return Painting::SVGGraphicsPaintable::create(*this);
|
|
|
|
}
|
|
|
|
|
2020-10-05 16:14:36 -07:00
|
|
|
}
|