ladybird/Libraries/LibWeb/SVG/SVGAnimationElement.h
Tete17 223b1cc704 LibWeb: Add barebones SVGAnimationElement class
Many wpt test on trusted-types relay on this class being defined to even
begin the test as it declares some event handlers.

This is not really an implementation but the most basic setup needed to
run the tests.
2025-07-30 15:51:35 +01:00

26 lines
615 B
C++

/*
* Copyright (c) 2025, Miguel Sacristán Izcue <miguel_tete17@hotmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibJS/Forward.h>
#include <LibWeb/Bindings/PlatformObject.h>
#include <LibWeb/Bindings/SVGAnimationElementPrototype.h>
#include <LibWeb/SVG/SVGElement.h>
namespace Web::SVG {
class SVGAnimationElement final : public SVGElement {
WEB_PLATFORM_OBJECT(SVGAnimationElement, SVGElement);
GC_DECLARE_ALLOCATOR(SVGAnimationElement);
private:
SVGAnimationElement(DOM::Document&, DOM::QualifiedName);
virtual void initialize(JS::Realm&) override;
};
}