mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-08 05:27:14 +09:00

Currently, this metadata is only provided on the insertion steps, though I believe it would be useful to extend to the other cases as well. This metadata can aid in making optimizations for these steps by providing extra context into the type of change which was made on the child.
26 lines
629 B
C++
26 lines
629 B
C++
/*
|
|
* 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);
|
|
GC_DECLARE_ALLOCATOR(SVGTitleElement);
|
|
|
|
private:
|
|
SVGTitleElement(DOM::Document&, DOM::QualifiedName);
|
|
|
|
virtual void initialize(JS::Realm&) override;
|
|
|
|
virtual GC::Ptr<Layout::Node> create_layout_node(GC::Ref<CSS::ComputedProperties>) override;
|
|
virtual void children_changed(ChildrenChangedMetadata const*) override;
|
|
};
|
|
|
|
}
|