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
20d8e72c
Commit
20d8e72c
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 AreaElements using the dispex.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
36d923e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
7 deletions
+21
-7
htmlarea.c
dlls/mshtml/htmlarea.c
+21
-7
No files found.
dlls/mshtml/htmlarea.c
View file @
20d8e72c
...
...
@@ -454,17 +454,24 @@ fallback:
return
HTMLElement_handle_event
(
&
This
->
element
.
node
,
eid
,
event
,
prevent_default
);
}
static
void
HTMLAreaElement_traverse
(
HTMLDOMNode
*
iface
,
nsCycleCollectionTraversalCallback
*
cb
)
static
inline
HTMLAreaElement
*
impl_from_DispatchEx
(
DispatchEx
*
iface
)
{
HTMLAreaElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
return
CONTAINING_RECORD
(
iface
,
HTMLAreaElement
,
element
.
node
.
event_target
.
dispex
);
}
static
void
HTMLAreaElement_traverse
(
DispatchEx
*
dispex
,
nsCycleCollectionTraversalCallback
*
cb
)
{
HTMLAreaElement
*
This
=
impl_from_DispatchEx
(
dispex
);
HTMLDOMNode_traverse
(
dispex
,
cb
);
if
(
This
->
nsarea
)
note_cc_edge
((
nsISupports
*
)
This
->
nsarea
,
"nsarea"
,
cb
);
}
static
void
HTMLAreaElement_unlink
(
HTMLDOMNode
*
iface
)
static
void
HTMLAreaElement_unlink
(
DispatchEx
*
dispex
)
{
HTMLAreaElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
HTMLAreaElement
*
This
=
impl_from_DispatchEx
(
dispex
);
HTMLDOMNode_unlink
(
dispex
);
unlink_ref
(
&
This
->
nsarea
);
}
...
...
@@ -476,8 +483,15 @@ static const NodeImplVtbl HTMLAreaElementImplVtbl = {
.
clone
=
HTMLElement_clone
,
.
handle_event
=
HTMLAreaElement_handle_event
,
.
get_attr_col
=
HTMLElement_get_attr_col
,
.
traverse
=
HTMLAreaElement_traverse
,
.
unlink
=
HTMLAreaElement_unlink
};
static
const
event_target_vtbl_t
HTMLAreaElement_event_target_vtbl
=
{
{
HTMLELEMENT_DISPEX_VTBL_ENTRIES
,
.
traverse
=
HTMLAreaElement_traverse
,
.
unlink
=
HTMLAreaElement_unlink
},
HTMLELEMENT_EVENT_TARGET_VTBL_ENTRIES
,
};
static
const
tid_t
HTMLAreaElement_iface_tids
[]
=
{
...
...
@@ -487,7 +501,7 @@ static const tid_t HTMLAreaElement_iface_tids[] = {
};
static
dispex_static_data_t
HTMLAreaElement_dispex
=
{
"HTMLAreaElement"
,
&
HTMLElement_event_target_vtbl
.
dispex_vtbl
,
&
HTML
Area
Element_event_target_vtbl
.
dispex_vtbl
,
DispHTMLAreaElement_tid
,
HTMLAreaElement_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