Skip to content

Commit eb4ff07

Browse files
ayeteadoetrflynn89
authored andcommitted
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.
1 parent 1bcc489 commit eb4ff07

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Libraries/LibWeb/SVG/SVGImageElement.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ SVGImageElement::SVGImageElement(DOM::Document& document, DOM::QualifiedName qua
2727
m_animation_timer->on_timeout = [this] { animate(); };
2828
}
2929

30+
SVGImageElement::~SVGImageElement() = default;
31+
3032
void SVGImageElement::initialize(JS::Realm& realm)
3133
{
3234
WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGImageElement);

Libraries/LibWeb/SVG/SVGImageElement.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ class SVGImageElement final
2020
WEB_PLATFORM_OBJECT(SVGImageElement, SVGGraphicsElement);
2121

2222
public:
23+
~SVGImageElement();
24+
2325
virtual void attribute_changed(FlyString const& name, Optional<String> const& old_value, Optional<String> const& value, Optional<FlyString> const& namespace_) override;
2426

2527
GC::Ref<SVG::SVGAnimatedLength> x();

0 commit comments

Comments
 (0)