Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
e5c40735
Commit
e5c40735
authored
Sep 15, 2023
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Sep 15, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Traverse and unlink ScriptElements using the dispex.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
78c60c07
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
8 deletions
+22
-8
htmlscript.c
dlls/mshtml/htmlscript.c
+22
-8
No files found.
dlls/mshtml/htmlscript.c
View file @
e5c40735
...
...
@@ -401,17 +401,24 @@ static HRESULT HTMLScriptElement_bind_to_tree(HTMLDOMNode *iface)
return
S_OK
;
}
static
void
HTMLScriptElement_traverse
(
HTMLDOMNode
*
iface
,
nsCycleCollectionTraversalCallback
*
cb
)
static
inline
HTMLScriptElement
*
impl_from_DispatchEx
(
DispatchEx
*
iface
)
{
HTMLScriptElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
return
CONTAINING_RECORD
(
iface
,
HTMLScriptElement
,
element
.
node
.
event_target
.
dispex
);
}
static
void
HTMLScriptElement_traverse
(
DispatchEx
*
dispex
,
nsCycleCollectionTraversalCallback
*
cb
)
{
HTMLScriptElement
*
This
=
impl_from_DispatchEx
(
dispex
);
HTMLDOMNode_traverse
(
dispex
,
cb
);
if
(
This
->
nsscript
)
note_cc_edge
((
nsISupports
*
)
This
->
nsscript
,
"
This->
nsscript"
,
cb
);
note_cc_edge
((
nsISupports
*
)
This
->
nsscript
,
"nsscript"
,
cb
);
}
static
void
HTMLScriptElement_unlink
(
HTMLDOMNode
*
iface
)
static
void
HTMLScriptElement_unlink
(
DispatchEx
*
dispex
)
{
HTMLScriptElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
HTMLScriptElement
*
This
=
impl_from_DispatchEx
(
dispex
);
HTMLDOMNode_unlink
(
dispex
);
unlink_ref
(
&
This
->
nsscript
);
}
...
...
@@ -425,8 +432,15 @@ static const NodeImplVtbl HTMLScriptElementImplVtbl = {
.
get_attr_col
=
HTMLElement_get_attr_col
,
.
get_readystate
=
HTMLScriptElement_get_readystate
,
.
bind_to_tree
=
HTMLScriptElement_bind_to_tree
,
.
traverse
=
HTMLScriptElement_traverse
,
.
unlink
=
HTMLScriptElement_unlink
};
static
const
event_target_vtbl_t
HTMLScriptElement_event_target_vtbl
=
{
{
HTMLELEMENT_DISPEX_VTBL_ENTRIES
,
.
traverse
=
HTMLScriptElement_traverse
,
.
unlink
=
HTMLScriptElement_unlink
},
HTMLELEMENT_EVENT_TARGET_VTBL_ENTRIES
,
};
HRESULT
script_elem_from_nsscript
(
nsIDOMHTMLScriptElement
*
nsscript
,
HTMLScriptElement
**
ret
)
...
...
@@ -457,7 +471,7 @@ static const tid_t HTMLScriptElement_iface_tids[] = {
static
dispex_static_data_t
HTMLScriptElement_dispex
=
{
"HTMLScriptElement"
,
&
HTMLElement_event_target_vtbl
.
dispex_vtbl
,
&
HTML
Script
Element_event_target_vtbl
.
dispex_vtbl
,
DispHTMLScriptElement_tid
,
HTMLScriptElement_iface_tids
,
HTMLElement_init_dispex_info
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment