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
e6c2395f
Commit
e6c2395f
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 LinkElements using the dispex.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
d47279b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
8 deletions
+22
-8
htmllink.c
dlls/mshtml/htmllink.c
+22
-8
No files found.
dlls/mshtml/htmllink.c
View file @
e6c2395f
...
...
@@ -396,17 +396,24 @@ static HRESULT HTMLLinkElementImpl_get_disabled(HTMLDOMNode *iface, VARIANT_BOOL
return
IHTMLLinkElement_get_disabled
(
&
This
->
IHTMLLinkElement_iface
,
p
);
}
static
void
HTMLLinkElement_traverse
(
HTMLDOMNode
*
iface
,
nsCycleCollectionTraversalCallback
*
cb
)
static
inline
HTMLLinkElement
*
impl_from_DispatchEx
(
DispatchEx
*
iface
)
{
HTMLLinkElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
return
CONTAINING_RECORD
(
iface
,
HTMLLinkElement
,
element
.
node
.
event_target
.
dispex
);
}
static
void
HTMLLinkElement_traverse
(
DispatchEx
*
dispex
,
nsCycleCollectionTraversalCallback
*
cb
)
{
HTMLLinkElement
*
This
=
impl_from_DispatchEx
(
dispex
);
HTMLDOMNode_traverse
(
dispex
,
cb
);
if
(
This
->
nslink
)
note_cc_edge
((
nsISupports
*
)
This
->
nslink
,
"
This->
nslink"
,
cb
);
note_cc_edge
((
nsISupports
*
)
This
->
nslink
,
"nslink"
,
cb
);
}
static
void
HTMLLinkElement_unlink
(
HTMLDOMNode
*
iface
)
static
void
HTMLLinkElement_unlink
(
DispatchEx
*
dispex
)
{
HTMLLinkElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
HTMLLinkElement
*
This
=
impl_from_DispatchEx
(
dispex
);
HTMLDOMNode_unlink
(
dispex
);
unlink_ref
(
&
This
->
nslink
);
}
static
const
NodeImplVtbl
HTMLLinkElementImplVtbl
=
{
...
...
@@ -419,8 +426,15 @@ static const NodeImplVtbl HTMLLinkElementImplVtbl = {
.
get_attr_col
=
HTMLElement_get_attr_col
,
.
put_disabled
=
HTMLLinkElementImpl_put_disabled
,
.
get_disabled
=
HTMLLinkElementImpl_get_disabled
,
.
traverse
=
HTMLLinkElement_traverse
,
.
unlink
=
HTMLLinkElement_unlink
};
static
const
event_target_vtbl_t
HTMLLinkElement_event_target_vtbl
=
{
{
HTMLELEMENT_DISPEX_VTBL_ENTRIES
,
.
traverse
=
HTMLLinkElement_traverse
,
.
unlink
=
HTMLLinkElement_unlink
},
HTMLELEMENT_EVENT_TARGET_VTBL_ENTRIES
,
};
static
const
tid_t
HTMLLinkElement_iface_tids
[]
=
{
...
...
@@ -430,7 +444,7 @@ static const tid_t HTMLLinkElement_iface_tids[] = {
};
static
dispex_static_data_t
HTMLLinkElement_dispex
=
{
"HTMLLinkElement"
,
&
HTMLElement_event_target_vtbl
.
dispex_vtbl
,
&
HTML
Link
Element_event_target_vtbl
.
dispex_vtbl
,
DispHTMLLinkElement_tid
,
HTMLLinkElement_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