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
e5afc688
Commit
e5afc688
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 InputElements using the dispex.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
a9e5a233
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
8 deletions
+22
-8
htmlinput.c
dlls/mshtml/htmlinput.c
+22
-8
No files found.
dlls/mshtml/htmlinput.c
View file @
e5afc688
...
...
@@ -1393,17 +1393,24 @@ static BOOL HTMLInputElement_is_text_edit(HTMLDOMNode *iface)
return
ret
;
}
static
void
HTMLInputElement_traverse
(
HTMLDOMNode
*
iface
,
nsCycleCollectionTraversalCallback
*
cb
)
static
inline
HTMLInputElement
*
input_from_DispatchEx
(
DispatchEx
*
iface
)
{
HTMLInputElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
return
CONTAINING_RECORD
(
iface
,
HTMLInputElement
,
element
.
node
.
event_target
.
dispex
);
}
static
void
HTMLInputElement_traverse
(
DispatchEx
*
dispex
,
nsCycleCollectionTraversalCallback
*
cb
)
{
HTMLInputElement
*
This
=
input_from_DispatchEx
(
dispex
);
HTMLDOMNode_traverse
(
dispex
,
cb
);
if
(
This
->
nsinput
)
note_cc_edge
((
nsISupports
*
)
This
->
nsinput
,
"
This->
nsinput"
,
cb
);
note_cc_edge
((
nsISupports
*
)
This
->
nsinput
,
"nsinput"
,
cb
);
}
static
void
HTMLInputElement_unlink
(
HTMLDOMNode
*
iface
)
static
void
HTMLInputElement_unlink
(
DispatchEx
*
dispex
)
{
HTMLInputElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
HTMLInputElement
*
This
=
input_from_DispatchEx
(
dispex
);
HTMLDOMNode_unlink
(
dispex
);
unlink_ref
(
&
This
->
nsinput
);
}
...
...
@@ -1417,11 +1424,18 @@ static const NodeImplVtbl HTMLInputElementImplVtbl = {
.
get_attr_col
=
HTMLElement_get_attr_col
,
.
put_disabled
=
HTMLInputElementImpl_put_disabled
,
.
get_disabled
=
HTMLInputElementImpl_get_disabled
,
.
traverse
=
HTMLInputElement_traverse
,
.
unlink
=
HTMLInputElement_unlink
,
.
is_text_edit
=
HTMLInputElement_is_text_edit
};
static
const
event_target_vtbl_t
HTMLInputElement_event_target_vtbl
=
{
{
HTMLELEMENT_DISPEX_VTBL_ENTRIES
,
.
traverse
=
HTMLInputElement_traverse
,
.
unlink
=
HTMLInputElement_unlink
},
HTMLELEMENT_EVENT_TARGET_VTBL_ENTRIES
,
};
static
const
tid_t
HTMLInputElement_iface_tids
[]
=
{
HTMLELEMENT_TIDS
,
IHTMLInputElement_tid
,
...
...
@@ -1430,7 +1444,7 @@ static const tid_t HTMLInputElement_iface_tids[] = {
};
static
dispex_static_data_t
HTMLInputElement_dispex
=
{
"HTMLInputElement"
,
&
HTMLElement_event_target_vtbl
.
dispex_vtbl
,
&
HTML
Input
Element_event_target_vtbl
.
dispex_vtbl
,
DispHTMLInputElement_tid
,
HTMLInputElement_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