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
9d10b639
Commit
9d10b639
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 IFrames using the dispex.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
015cfd9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
8 deletions
+22
-8
htmlframe.c
dlls/mshtml/htmlframe.c
+22
-8
No files found.
dlls/mshtml/htmlframe.c
View file @
9d10b639
...
...
@@ -1572,17 +1572,24 @@ static HRESULT HTMLIFrame_bind_to_tree(HTMLDOMNode *iface)
return
hres
;
}
static
void
HTMLIFrame_traverse
(
HTMLDOMNode
*
iface
,
nsCycleCollectionTraversalCallback
*
cb
)
static
inline
HTMLIFrame
*
iframe_from_DispatchEx
(
DispatchEx
*
iface
)
{
HTMLIFrame
*
This
=
iframe_from_HTMLDOMNode
(
iface
);
return
CONTAINING_RECORD
(
iface
,
HTMLIFrame
,
framebase
.
element
.
node
.
event_target
.
dispex
);
}
static
void
HTMLIFrame_traverse
(
DispatchEx
*
dispex
,
nsCycleCollectionTraversalCallback
*
cb
)
{
HTMLIFrame
*
This
=
iframe_from_DispatchEx
(
dispex
);
HTMLDOMNode_traverse
(
dispex
,
cb
);
if
(
This
->
framebase
.
nsiframe
)
note_cc_edge
((
nsISupports
*
)
This
->
framebase
.
nsiframe
,
"
This->
nsiframe"
,
cb
);
note_cc_edge
((
nsISupports
*
)
This
->
framebase
.
nsiframe
,
"nsiframe"
,
cb
);
}
static
void
HTMLIFrame_unlink
(
HTMLDOMNode
*
iface
)
static
void
HTMLIFrame_unlink
(
DispatchEx
*
dispex
)
{
HTMLIFrame
*
This
=
iframe_from_HTMLDOMNode
(
iface
);
HTMLIFrame
*
This
=
iframe_from_DispatchEx
(
dispex
);
HTMLDOMNode_unlink
(
dispex
);
unlink_ref
(
&
This
->
framebase
.
nsiframe
);
}
...
...
@@ -1600,8 +1607,15 @@ static const NodeImplVtbl HTMLIFrameImplVtbl = {
.
get_name
=
HTMLIFrame_get_name
,
.
invoke
=
HTMLIFrame_invoke
,
.
bind_to_tree
=
HTMLIFrame_bind_to_tree
,
.
traverse
=
HTMLIFrame_traverse
,
.
unlink
=
HTMLIFrame_unlink
};
static
const
event_target_vtbl_t
HTMLIFrame_event_target_vtbl
=
{
{
HTMLELEMENT_DISPEX_VTBL_ENTRIES
,
.
traverse
=
HTMLIFrame_traverse
,
.
unlink
=
HTMLIFrame_unlink
},
HTMLELEMENT_EVENT_TARGET_VTBL_ENTRIES
,
};
static
const
tid_t
HTMLIFrame_iface_tids
[]
=
{
...
...
@@ -1616,7 +1630,7 @@ static const tid_t HTMLIFrame_iface_tids[] = {
static
dispex_static_data_t
HTMLIFrame_dispex
=
{
"HTMLIFrameElement"
,
&
HTML
Element
_event_target_vtbl
.
dispex_vtbl
,
&
HTML
IFrame
_event_target_vtbl
.
dispex_vtbl
,
DispHTMLIFrame_tid
,
HTMLIFrame_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