2024-08-20 15:12:55 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2024, Tim Ledbetter <tim.ledbetter@ladybird.org>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <LibWeb/Layout/SVGImageBox.h>
|
|
|
|
#include <LibWeb/Painting/ImagePaintable.h>
|
|
|
|
#include <LibWeb/Painting/SVGGraphicsPaintable.h>
|
|
|
|
#include <LibWeb/Painting/StackingContext.h>
|
|
|
|
|
|
|
|
namespace Web::Layout {
|
|
|
|
|
2024-10-26 17:42:27 +02:00
|
|
|
SVGImageBox::SVGImageBox(DOM::Document& document, SVG::SVGGraphicsElement& element, CSS::StyleProperties properties)
|
2024-08-20 15:12:55 +01:00
|
|
|
: SVGGraphicsBox(document, element, properties)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2024-11-15 04:01:23 +13:00
|
|
|
GC::Ptr<Painting::Paintable> SVGImageBox::create_paintable() const
|
2024-08-20 15:12:55 +01:00
|
|
|
{
|
|
|
|
return Painting::ImagePaintable::create(*this);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|