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
015cfd9e
Commit
015cfd9e
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 FrameElements using the dispex.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
35aeccf3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
6 deletions
+20
-6
htmlframe.c
dlls/mshtml/htmlframe.c
+20
-6
No files found.
dlls/mshtml/htmlframe.c
View file @
015cfd9e
...
@@ -981,17 +981,24 @@ static HRESULT HTMLFrameElement_bind_to_tree(HTMLDOMNode *iface)
...
@@ -981,17 +981,24 @@ static HRESULT HTMLFrameElement_bind_to_tree(HTMLDOMNode *iface)
return
hres
;
return
hres
;
}
}
static
void
HTMLFrameElement_traverse
(
HTMLDOMNode
*
iface
,
nsCycleCollectionTraversalCallback
*
cb
)
static
inline
HTMLFrameElement
*
frame_from_DispatchEx
(
DispatchEx
*
iface
)
{
{
HTMLFrameElement
*
This
=
frame_from_HTMLDOMNode
(
iface
);
return
CONTAINING_RECORD
(
iface
,
HTMLFrameElement
,
framebase
.
element
.
node
.
event_target
.
dispex
);
}
static
void
HTMLFrameElement_traverse
(
DispatchEx
*
dispex
,
nsCycleCollectionTraversalCallback
*
cb
)
{
HTMLFrameElement
*
This
=
frame_from_DispatchEx
(
dispex
);
HTMLDOMNode_traverse
(
dispex
,
cb
);
if
(
This
->
framebase
.
nsframe
)
if
(
This
->
framebase
.
nsframe
)
note_cc_edge
((
nsISupports
*
)
This
->
framebase
.
nsframe
,
"
This->
nsframe"
,
cb
);
note_cc_edge
((
nsISupports
*
)
This
->
framebase
.
nsframe
,
"nsframe"
,
cb
);
}
}
static
void
HTMLFrameElement_unlink
(
HTMLDOMNode
*
iface
)
static
void
HTMLFrameElement_unlink
(
DispatchEx
*
dispex
)
{
{
HTMLFrameElement
*
This
=
frame_from_HTMLDOMNode
(
iface
);
HTMLFrameElement
*
This
=
frame_from_DispatchEx
(
dispex
);
HTMLDOMNode_unlink
(
dispex
);
unlink_ref
(
&
This
->
framebase
.
nsframe
);
unlink_ref
(
&
This
->
framebase
.
nsframe
);
}
}
...
@@ -1009,8 +1016,15 @@ static const NodeImplVtbl HTMLFrameElementImplVtbl = {
...
@@ -1009,8 +1016,15 @@ static const NodeImplVtbl HTMLFrameElementImplVtbl = {
.
get_name
=
HTMLFrameElement_get_name
,
.
get_name
=
HTMLFrameElement_get_name
,
.
invoke
=
HTMLFrameElement_invoke
,
.
invoke
=
HTMLFrameElement_invoke
,
.
bind_to_tree
=
HTMLFrameElement_bind_to_tree
,
.
bind_to_tree
=
HTMLFrameElement_bind_to_tree
,
};
static
const
event_target_vtbl_t
HTMLFrameElement_event_target_vtbl
=
{
{
HTMLELEMENT_DISPEX_VTBL_ENTRIES
,
.
traverse
=
HTMLFrameElement_traverse
,
.
traverse
=
HTMLFrameElement_traverse
,
.
unlink
=
HTMLFrameElement_unlink
.
unlink
=
HTMLFrameElement_unlink
},
HTMLELEMENT_EVENT_TARGET_VTBL_ENTRIES
,
};
};
static
const
tid_t
HTMLFrameElement_iface_tids
[]
=
{
static
const
tid_t
HTMLFrameElement_iface_tids
[]
=
{
...
@@ -1023,7 +1037,7 @@ static const tid_t HTMLFrameElement_iface_tids[] = {
...
@@ -1023,7 +1037,7 @@ static const tid_t HTMLFrameElement_iface_tids[] = {
static
dispex_static_data_t
HTMLFrameElement_dispex
=
{
static
dispex_static_data_t
HTMLFrameElement_dispex
=
{
"HTMLFrameElement"
,
"HTMLFrameElement"
,
&
HTMLElement_event_target_vtbl
.
dispex_vtbl
,
&
HTML
Frame
Element_event_target_vtbl
.
dispex_vtbl
,
DispHTMLFrameElement_tid
,
DispHTMLFrameElement_tid
,
HTMLFrameElement_iface_tids
,
HTMLFrameElement_iface_tids
,
HTMLElement_init_dispex_info
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