2024-04-25 20:21:12 +02:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2024, Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <LibWeb/Layout/SVGForeignObjectBox.h>
|
|
|
|
#include <LibWeb/Painting/SVGForeignObjectPaintable.h>
|
|
|
|
#include <LibWeb/SVG/SVGSVGElement.h>
|
|
|
|
|
|
|
|
namespace Web::Layout {
|
|
|
|
|
2024-11-15 04:01:23 +13:00
|
|
|
GC_DEFINE_ALLOCATOR(SVGForeignObjectBox);
|
2024-04-25 20:21:12 +02:00
|
|
|
|
2024-12-20 11:32:17 +01:00
|
|
|
SVGForeignObjectBox::SVGForeignObjectBox(DOM::Document& document, SVG::SVGForeignObjectElement& element, CSS::ComputedProperties properties)
|
2024-04-25 20:21:12 +02:00
|
|
|
: BlockContainer(document, &element, properties)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2024-11-15 04:01:23 +13:00
|
|
|
GC::Ptr<Painting::Paintable> SVGForeignObjectBox::create_paintable() const
|
2024-04-25 20:21:12 +02:00
|
|
|
{
|
|
|
|
return Painting::SVGForeignObjectPaintable::create(*this);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|