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
e9cc7676
Commit
e9cc7676
authored
Jul 19, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 19, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Make node object's dynamic IDispatchEx-based properties cycle collectable.
parent
97ff991f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
0 deletions
+37
-0
dispex.c
dlls/mshtml/dispex.c
+32
-0
htmlnode.c
dlls/mshtml/htmlnode.c
+3
-0
mshtml_private.h
dlls/mshtml/mshtml_private.h
+2
-0
No files found.
dlls/mshtml/dispex.c
View file @
e9cc7676
...
...
@@ -1377,6 +1377,38 @@ BOOL dispex_query_interface(DispatchEx *This, REFIID riid, void **ppv)
return
TRUE
;
}
void
dispex_traverse
(
DispatchEx
*
This
,
nsCycleCollectionTraversalCallback
*
cb
)
{
dynamic_prop_t
*
prop
;
if
(
!
This
->
dynamic_data
)
return
;
for
(
prop
=
This
->
dynamic_data
->
props
;
prop
<
This
->
dynamic_data
->
props
+
This
->
dynamic_data
->
prop_cnt
;
prop
++
)
{
if
(
V_VT
(
&
prop
->
var
)
==
VT_DISPATCH
)
note_cc_edge
((
nsISupports
*
)
V_DISPATCH
(
&
prop
->
var
),
"dispex_data"
,
cb
);
}
/* FIXME: Traverse func_disps */
}
void
dispex_unlink
(
DispatchEx
*
This
)
{
dynamic_prop_t
*
prop
;
if
(
!
This
->
dynamic_data
)
return
;
for
(
prop
=
This
->
dynamic_data
->
props
;
prop
<
This
->
dynamic_data
->
props
+
This
->
dynamic_data
->
prop_cnt
;
prop
++
)
{
if
(
V_VT
(
&
prop
->
var
)
==
VT_DISPATCH
)
{
V_VT
(
&
prop
->
var
)
=
VT_EMPTY
;
IDispatch_Release
(
V_DISPATCH
(
&
prop
->
var
));
}
else
{
VariantClear
(
&
prop
->
var
);
}
}
}
void
release_dispex
(
DispatchEx
*
This
)
{
dynamic_prop_t
*
prop
;
...
...
dlls/mshtml/htmlnode.c
View file @
e9cc7676
...
...
@@ -1123,6 +1123,7 @@ static nsresult NSAPI HTMLDOMNode_traverse(void *ccp, void *p, nsCycleCollection
if
(
This
->
nsnode
)
note_cc_edge
((
nsISupports
*
)
This
->
nsnode
,
"This->nsnode"
,
cb
);
dispex_traverse
(
&
This
->
dispex
,
cb
);
return
NS_OK
;
}
...
...
@@ -1133,6 +1134,8 @@ static nsresult NSAPI HTMLDOMNode_unlink(void *p)
TRACE
(
"%p
\n
"
,
This
);
dispex_unlink
(
&
This
->
dispex
);
if
(
This
->
nsnode
)
{
nsIDOMNode
*
nsnode
=
This
->
nsnode
;
This
->
nsnode
=
NULL
;
...
...
dlls/mshtml/mshtml_private.h
View file @
e9cc7676
...
...
@@ -258,6 +258,8 @@ HRESULT dispex_get_dprop_ref(DispatchEx*,const WCHAR*,BOOL,VARIANT**) DECLSPEC_H
HRESULT
get_dispids
(
tid_t
,
DWORD
*
,
DISPID
**
)
DECLSPEC_HIDDEN
;
HRESULT
remove_prop
(
DispatchEx
*
,
BSTR
,
VARIANT_BOOL
*
)
DECLSPEC_HIDDEN
;
HRESULT
dispex_get_dynid
(
DispatchEx
*
,
const
WCHAR
*
,
DISPID
*
)
DECLSPEC_HIDDEN
;
void
dispex_traverse
(
DispatchEx
*
,
nsCycleCollectionTraversalCallback
*
)
DECLSPEC_HIDDEN
;
void
dispex_unlink
(
DispatchEx
*
)
DECLSPEC_HIDDEN
;
void
release_typelib
(
void
)
DECLSPEC_HIDDEN
;
HRESULT
get_htmldoc_classinfo
(
ITypeInfo
**
typeinfo
)
DECLSPEC_HIDDEN
;
...
...
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