Commit 13842950 authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

mshtml: Move node vtbl destructor methods down.

parent 6c1c1aaa
......@@ -354,13 +354,6 @@ static inline HTMLScriptElement *impl_from_HTMLDOMNode(HTMLDOMNode *iface)
return CONTAINING_RECORD(iface, HTMLScriptElement, element.node);
}
static void HTMLScriptElement_destructor(HTMLDOMNode *iface)
{
HTMLScriptElement *This = impl_from_HTMLDOMNode(iface);
free(This->src_text);
HTMLElement_destructor(&This->element.node);
}
static HRESULT HTMLScriptElement_get_readystate(HTMLDOMNode *iface, BSTR *p)
{
HTMLScriptElement *This = impl_from_HTMLDOMNode(iface);
......@@ -422,6 +415,13 @@ static void HTMLScriptElement_unlink(DispatchEx *dispex)
unlink_ref(&This->nsscript);
}
static void HTMLScriptElement_destructor(HTMLDOMNode *iface)
{
HTMLScriptElement *This = impl_from_HTMLDOMNode(iface);
free(This->src_text);
HTMLElement_destructor(&This->element.node);
}
static const NodeImplVtbl HTMLScriptElementImplVtbl = {
.clsid = &CLSID_HTMLScriptElement,
.qi = HTMLScriptElement_QI,
......
......@@ -365,14 +365,6 @@ static inline HTMLStyleElement *impl_from_HTMLDOMNode(HTMLDOMNode *iface)
return CONTAINING_RECORD(iface, HTMLStyleElement, element.node);
}
static void HTMLStyleElement_destructor(HTMLDOMNode *iface)
{
HTMLStyleElement *This = impl_from_HTMLDOMNode(iface);
unlink_ref(&This->style_sheet);
HTMLElement_destructor(iface);
}
static inline HTMLStyleElement *impl_from_DispatchEx(DispatchEx *iface)
{
return CONTAINING_RECORD(iface, HTMLStyleElement, element.node.event_target.dispex);
......@@ -410,6 +402,14 @@ static void HTMLStyleElement_unlink(DispatchEx *dispex)
unlink_ref(&This->nsstyle);
}
static void HTMLStyleElement_destructor(HTMLDOMNode *iface)
{
HTMLStyleElement *This = impl_from_HTMLDOMNode(iface);
unlink_ref(&This->style_sheet);
HTMLElement_destructor(iface);
}
static void HTMLStyleElement_init_dispex_info(dispex_data_t *info, compat_mode_t mode)
{
static const dispex_hook_t ie11_hooks[] = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment