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