mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:17:45 +00:00
LibWeb: Implement the SVG title element
This commit is contained in:
parent
3a28be2a98
commit
e2e4e6da52
7 changed files with 84 additions and 0 deletions
25
Userland/Libraries/LibWeb/SVG/SVGTitleElement.h
Normal file
25
Userland/Libraries/LibWeb/SVG/SVGTitleElement.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
* Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/SVG/SVGElement.h>
|
||||
|
||||
namespace Web::SVG {
|
||||
|
||||
class SVGTitleElement final : public SVGElement {
|
||||
WEB_PLATFORM_OBJECT(SVGTitleElement, SVGElement);
|
||||
|
||||
private:
|
||||
SVGTitleElement(DOM::Document&, DOM::QualifiedName);
|
||||
|
||||
virtual JS::ThrowCompletionOr<void> initialize(JS::Realm&) override;
|
||||
|
||||
virtual JS::GCPtr<Layout::Node> create_layout_node(NonnullRefPtr<CSS::StyleProperties>) override;
|
||||
virtual void children_changed() override;
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue