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
35aeccf3
Commit
35aeccf3
authored
Sep 13, 2023
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Sep 14, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Traverse and unlink FormElements using the dispex.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
87a06268
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
8 deletions
+22
-8
htmlform.c
dlls/mshtml/htmlform.c
+22
-8
No files found.
dlls/mshtml/htmlform.c
View file @
35aeccf3
...
...
@@ -946,17 +946,24 @@ static HRESULT HTMLFormElement_handle_event(HTMLDOMNode *iface, DWORD eid, nsIDO
return
HTMLElement_handle_event
(
&
This
->
element
.
node
,
eid
,
event
,
prevent_default
);
}
static
void
HTMLFormElement_traverse
(
HTMLDOMNode
*
iface
,
nsCycleCollectionTraversalCallback
*
cb
)
static
inline
HTMLFormElement
*
impl_from_DispatchEx
(
DispatchEx
*
iface
)
{
HTMLFormElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
return
CONTAINING_RECORD
(
iface
,
HTMLFormElement
,
element
.
node
.
event_target
.
dispex
);
}
static
void
HTMLFormElement_traverse
(
DispatchEx
*
dispex
,
nsCycleCollectionTraversalCallback
*
cb
)
{
HTMLFormElement
*
This
=
impl_from_DispatchEx
(
dispex
);
HTMLDOMNode_traverse
(
dispex
,
cb
);
if
(
This
->
nsform
)
note_cc_edge
((
nsISupports
*
)
This
->
nsform
,
"
This->
nsform"
,
cb
);
note_cc_edge
((
nsISupports
*
)
This
->
nsform
,
"nsform"
,
cb
);
}
static
void
HTMLFormElement_unlink
(
HTMLDOMNode
*
iface
)
static
void
HTMLFormElement_unlink
(
DispatchEx
*
dispex
)
{
HTMLFormElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
HTMLFormElement
*
This
=
impl_from_DispatchEx
(
dispex
);
HTMLDOMNode_unlink
(
dispex
);
unlink_ref
(
&
This
->
nsform
);
}
...
...
@@ -971,8 +978,15 @@ static const NodeImplVtbl HTMLFormElementImplVtbl = {
.
get_dispid
=
HTMLFormElement_get_dispid
,
.
get_name
=
HTMLFormElement_dispex_get_name
,
.
invoke
=
HTMLFormElement_invoke
,
.
traverse
=
HTMLFormElement_traverse
,
.
unlink
=
HTMLFormElement_unlink
};
static
const
event_target_vtbl_t
HTMLFormElement_event_target_vtbl
=
{
{
HTMLELEMENT_DISPEX_VTBL_ENTRIES
,
.
traverse
=
HTMLFormElement_traverse
,
.
unlink
=
HTMLFormElement_unlink
},
HTMLELEMENT_EVENT_TARGET_VTBL_ENTRIES
,
};
static
const
tid_t
HTMLFormElement_iface_tids
[]
=
{
...
...
@@ -983,7 +997,7 @@ static const tid_t HTMLFormElement_iface_tids[] = {
static
dispex_static_data_t
HTMLFormElement_dispex
=
{
"HTMLFormElement"
,
&
HTMLElement_event_target_vtbl
.
dispex_vtbl
,
&
HTML
Form
Element_event_target_vtbl
.
dispex_vtbl
,
DispHTMLFormElement_tid
,
HTMLFormElement_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