mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 20:15:07 +00:00

This removes a set of complex reference cycles between DOM, layout tree and browsing context. It also makes lifetimes much easier to reason about, as the DOM and layout trees are now free to keep each other alive.
27 lines
628 B
C++
27 lines
628 B
C++
/*
|
|
* Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibWeb/Bindings/Intrinsics.h>
|
|
#include <LibWeb/SVG/SVGClipPathElement.h>
|
|
|
|
namespace Web::SVG {
|
|
|
|
SVGClipPathElement::SVGClipPathElement(DOM::Document& document, DOM::QualifiedName qualified_name)
|
|
: SVGElement(document, move(qualified_name))
|
|
{
|
|
set_prototype(&Bindings::cached_web_prototype(realm(), "SVGClipPathElement"));
|
|
}
|
|
|
|
SVGClipPathElement::~SVGClipPathElement()
|
|
{
|
|
}
|
|
|
|
JS::GCPtr<Layout::Node> SVGClipPathElement::create_layout_node(NonnullRefPtr<CSS::StyleProperties>)
|
|
{
|
|
return nullptr;
|
|
}
|
|
|
|
}
|