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
d66560c9
Commit
d66560c9
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 SelectElements using the dispex.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
e5c40735
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
8 deletions
+22
-8
htmlselect.c
dlls/mshtml/htmlselect.c
+22
-8
No files found.
dlls/mshtml/htmlselect.c
View file @
d66560c9
...
...
@@ -1406,17 +1406,24 @@ static HRESULT HTMLSelectElement_invoke(HTMLDOMNode *iface, DISPID id, LCID lcid
return
S_OK
;
}
static
void
HTMLSelectElement_traverse
(
HTMLDOMNode
*
iface
,
nsCycleCollectionTraversalCallback
*
cb
)
static
inline
HTMLSelectElement
*
impl_from_DispatchEx
(
DispatchEx
*
iface
)
{
HTMLSelectElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
return
CONTAINING_RECORD
(
iface
,
HTMLSelectElement
,
element
.
node
.
event_target
.
dispex
);
}
static
void
HTMLSelectElement_traverse
(
DispatchEx
*
dispex
,
nsCycleCollectionTraversalCallback
*
cb
)
{
HTMLSelectElement
*
This
=
impl_from_DispatchEx
(
dispex
);
HTMLDOMNode_traverse
(
dispex
,
cb
);
if
(
This
->
nsselect
)
note_cc_edge
((
nsISupports
*
)
This
->
nsselect
,
"
This->
nsselect"
,
cb
);
note_cc_edge
((
nsISupports
*
)
This
->
nsselect
,
"nsselect"
,
cb
);
}
static
void
HTMLSelectElement_unlink
(
HTMLDOMNode
*
iface
)
static
void
HTMLSelectElement_unlink
(
DispatchEx
*
dispex
)
{
HTMLSelectElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
HTMLSelectElement
*
This
=
impl_from_DispatchEx
(
dispex
);
HTMLDOMNode_unlink
(
dispex
);
unlink_ref
(
&
This
->
nsselect
);
}
...
...
@@ -1433,8 +1440,15 @@ static const NodeImplVtbl HTMLSelectElementImplVtbl = {
.
get_dispid
=
HTMLSelectElement_get_dispid
,
.
get_name
=
HTMLSelectElement_dispex_get_name
,
.
invoke
=
HTMLSelectElement_invoke
,
.
traverse
=
HTMLSelectElement_traverse
,
.
unlink
=
HTMLSelectElement_unlink
};
static
const
event_target_vtbl_t
HTMLSelectElement_event_target_vtbl
=
{
{
HTMLELEMENT_DISPEX_VTBL_ENTRIES
,
.
traverse
=
HTMLSelectElement_traverse
,
.
unlink
=
HTMLSelectElement_unlink
},
HTMLELEMENT_EVENT_TARGET_VTBL_ENTRIES
,
};
static
const
tid_t
HTMLSelectElement_tids
[]
=
{
...
...
@@ -1445,7 +1459,7 @@ static const tid_t HTMLSelectElement_tids[] = {
static
dispex_static_data_t
HTMLSelectElement_dispex
=
{
"HTMLSelectElement"
,
&
HTMLElement_event_target_vtbl
.
dispex_vtbl
,
&
HTML
Select
Element_event_target_vtbl
.
dispex_vtbl
,
DispHTMLSelectElement_tid
,
HTMLSelectElement_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