2020-10-05 20:14:36 -03:00
|
|
|
/*
|
2021-04-22 20:53:07 -03:00
|
|
|
* Copyright (c) 2020, Matthew Olsson <mattco@serenityos.org>
|
2020-10-05 20:14:36 -03:00
|
|
|
*
|
2021-04-22 05:24:48 -03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-10-05 20:14:36 -03:00
|
|
|
*/
|
|
|
|
|
|
2020-11-22 11:53:01 -03:00
|
|
|
#include <LibWeb/Layout/SVGGraphicsBox.h>
|
2023-04-18 13:56:06 -03:00
|
|
|
#include <LibWeb/Painting/SVGGraphicsPaintable.h>
|
2022-03-09 22:13:28 -03:00
|
|
|
#include <LibWeb/Painting/StackingContext.h>
|
2020-10-05 20:14:36 -03:00
|
|
|
|
2020-11-22 11:53:01 -03:00
|
|
|
namespace Web::Layout {
|
2020-10-05 20:14:36 -03:00
|
|
|
|
2026-01-18 14:42:26 -03:00
|
|
|
GC_DEFINE_ALLOCATOR(SVGGraphicsBox);
|
|
|
|
|
|
2024-12-20 12:35:12 -03:00
|
|
|
SVGGraphicsBox::SVGGraphicsBox(DOM::Document& document, SVG::SVGGraphicsElement& element, GC::Ref<CSS::ComputedProperties> style)
|
|
|
|
|
: SVGBox(document, element, style)
|
2020-10-05 20:14:36 -03:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-14 12:01:23 -03:00
|
|
|
GC::Ptr<Painting::Paintable> SVGGraphicsBox::create_paintable() const
|
2023-04-18 13:56:06 -03:00
|
|
|
{
|
|
|
|
|
return Painting::SVGGraphicsPaintable::create(*this);
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-05 20:14:36 -03:00
|
|
|
}
|