Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
44e5d7d0
Commit
44e5d7d0
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 ObjectElements using the dispex.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
4108dbf1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
8 deletions
+22
-8
htmlobject.c
dlls/mshtml/htmlobject.c
+22
-8
No files found.
dlls/mshtml/htmlobject.c
View file @
44e5d7d0
...
...
@@ -722,17 +722,24 @@ static HRESULT HTMLObjectElement_invoke(HTMLDOMNode *iface, DISPID id, LCID lcid
return
invoke_plugin_prop
(
&
This
->
plugin_container
,
id
,
lcid
,
flags
,
params
,
res
,
ei
);
}
static
void
HTMLObjectElement_traverse
(
HTMLDOMNode
*
iface
,
nsCycleCollectionTraversalCallback
*
cb
)
static
inline
HTMLObjectElement
*
impl_from_DispatchEx
(
DispatchEx
*
iface
)
{
HTMLObjectElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
return
CONTAINING_RECORD
(
iface
,
HTMLObjectElement
,
plugin_container
.
element
.
node
.
event_target
.
dispex
);
}
static
void
HTMLObjectElement_traverse
(
DispatchEx
*
dispex
,
nsCycleCollectionTraversalCallback
*
cb
)
{
HTMLObjectElement
*
This
=
impl_from_DispatchEx
(
dispex
);
HTMLDOMNode_traverse
(
dispex
,
cb
);
if
(
This
->
nsobject
)
note_cc_edge
((
nsISupports
*
)
This
->
nsobject
,
"
This->
nsobject"
,
cb
);
note_cc_edge
((
nsISupports
*
)
This
->
nsobject
,
"nsobject"
,
cb
);
}
static
void
HTMLObjectElement_unlink
(
HTMLDOMNode
*
iface
)
static
void
HTMLObjectElement_unlink
(
DispatchEx
*
dispex
)
{
HTMLObjectElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
HTMLObjectElement
*
This
=
impl_from_DispatchEx
(
dispex
);
HTMLDOMNode_unlink
(
dispex
);
unlink_ref
(
&
This
->
nsobject
);
}
...
...
@@ -748,8 +755,15 @@ static const NodeImplVtbl HTMLObjectElementImplVtbl = {
.
get_dispid
=
HTMLObjectElement_get_dispid
,
.
get_name
=
HTMLObjectElement_dispex_get_name
,
.
invoke
=
HTMLObjectElement_invoke
,
.
traverse
=
HTMLObjectElement_traverse
,
.
unlink
=
HTMLObjectElement_unlink
};
static
const
event_target_vtbl_t
HTMLObjectElement_event_target_vtbl
=
{
{
HTMLELEMENT_DISPEX_VTBL_ENTRIES
,
.
traverse
=
HTMLObjectElement_traverse
,
.
unlink
=
HTMLObjectElement_unlink
},
HTMLELEMENT_EVENT_TARGET_VTBL_ENTRIES
,
};
static
const
tid_t
HTMLObjectElement_iface_tids
[]
=
{
...
...
@@ -760,7 +774,7 @@ static const tid_t HTMLObjectElement_iface_tids[] = {
};
static
dispex_static_data_t
HTMLObjectElement_dispex
=
{
"HTMLObjectElement"
,
&
HTMLElement_event_target_vtbl
.
dispex_vtbl
,
&
HTML
Object
Element_event_target_vtbl
.
dispex_vtbl
,
DispHTMLObjectElement_tid
,
HTMLObjectElement_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