2024-03-27 00:13:16 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2024, MacDue <macdue@dueutil.tech>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <LibWeb/Layout/SVGClipBox.h>
|
|
|
|
#include <LibWeb/Painting/SVGClipPaintable.h>
|
|
|
|
#include <LibWeb/Painting/StackingContext.h>
|
|
|
|
|
|
|
|
namespace Web::Layout {
|
|
|
|
|
2024-11-15 04:01:23 +13:00
|
|
|
GC_DEFINE_ALLOCATOR(SVGClipBox);
|
2024-04-06 10:16:04 -07:00
|
|
|
|
2024-12-20 16:35:12 +01:00
|
|
|
SVGClipBox::SVGClipBox(DOM::Document& document, SVG::SVGClipPathElement& element, GC::Ref<CSS::ComputedProperties> style)
|
|
|
|
: SVGBox(document, element, style)
|
2024-03-27 00:13:16 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2024-11-15 04:01:23 +13:00
|
|
|
GC::Ptr<Painting::Paintable> SVGClipBox::create_paintable() const
|
2024-03-27 00:13:16 +00:00
|
|
|
{
|
|
|
|
return Painting::SVGClipPaintable::create(*this);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|