LibWeb: Define SVGImageElement destructor for Core::Timer forward decl

This fixes a "error: member access into incomplete type 'Core::Timer'"
build error on clang-cl Windows.
This commit is contained in:
ayeteadoe 2025-11-05 19:10:39 -08:00 committed by Tim Flynn
parent 1bcc489310
commit eb4ff07d83
Notes: github-actions[bot] 2025-11-06 12:11:21 +00:00
2 changed files with 4 additions and 0 deletions

View file

@ -27,6 +27,8 @@ SVGImageElement::SVGImageElement(DOM::Document& document, DOM::QualifiedName qua
m_animation_timer->on_timeout = [this] { animate(); };
}
SVGImageElement::~SVGImageElement() = default;
void SVGImageElement::initialize(JS::Realm& realm)
{
WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGImageElement);

View file

@ -20,6 +20,8 @@ class SVGImageElement final
WEB_PLATFORM_OBJECT(SVGImageElement, SVGGraphicsElement);
public:
~SVGImageElement();
virtual void attribute_changed(FlyString const& name, Optional<String> const& old_value, Optional<String> const& value, Optional<FlyString> const& namespace_) override;
GC::Ref<SVG::SVGAnimatedLength> x();