mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:17:35 +00:00
LibWeb: Add SVGDefsElement
* Similarly to clipPath, this doesn't need to get rendered, so return no LayoutNode.
This commit is contained in:
parent
55e9192886
commit
bd90498332
8 changed files with 62 additions and 0 deletions
25
Userland/Libraries/LibWeb/SVG/SVGDefsElement.cpp
Normal file
25
Userland/Libraries/LibWeb/SVG/SVGDefsElement.cpp
Normal file
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Simon Danner <danner.simon@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <LibWeb/SVG/SVGDefsElement.h>
|
||||
|
||||
namespace Web::SVG {
|
||||
|
||||
SVGDefsElement::SVGDefsElement(DOM::Document& document, DOM::QualifiedName qualified_name)
|
||||
: SVGGraphicsElement(document, move(qualified_name))
|
||||
{
|
||||
}
|
||||
|
||||
SVGDefsElement::~SVGDefsElement()
|
||||
{
|
||||
}
|
||||
|
||||
RefPtr<Layout::Node> SVGDefsElement::create_layout_node(NonnullRefPtr<CSS::StyleProperties>)
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue