1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:17:44 +00:00

LibWeb: Add SVGDefsElement

* Similarly to clipPath, this doesn't need to get rendered, so return no
  LayoutNode.
This commit is contained in:
Simon Danner 2022-04-11 16:59:03 +02:00 committed by Andreas Kling
parent 55e9192886
commit bd90498332
8 changed files with 62 additions and 0 deletions

View 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;
}
}