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
4e0e50e2
Commit
4e0e50e2
authored
Aug 21, 2023
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Aug 21, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Implement Cycle Collection for HTMLPerformanceNavigation.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
0c0cbb5a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
omnavigator.c
dlls/mshtml/omnavigator.c
+11
-8
No files found.
dlls/mshtml/omnavigator.c
View file @
4e0e50e2
...
...
@@ -2003,7 +2003,6 @@ typedef struct {
DispatchEx
dispex
;
IHTMLPerformanceNavigation
IHTMLPerformanceNavigation_iface
;
LONG
ref
;
HTMLPerformanceTiming
*
timing
;
}
HTMLPerformanceNavigation
;
...
...
@@ -2022,7 +2021,7 @@ static HRESULT WINAPI HTMLPerformanceNavigation_QueryInterface(IHTMLPerformanceN
*
ppv
=
&
This
->
IHTMLPerformanceNavigation_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLPerformanceNavigation
,
riid
))
{
*
ppv
=
&
This
->
IHTMLPerformanceNavigation_iface
;
}
else
if
(
dispex_query_interface
_no_cc
(
&
This
->
dispex
,
riid
,
ppv
))
{
}
else
if
(
dispex_query_interface
(
&
This
->
dispex
,
riid
,
ppv
))
{
return
*
ppv
?
S_OK
:
E_NOINTERFACE
;
}
else
{
WARN
(
"Unsupported interface %s
\n
"
,
debugstr_mshtml_guid
(
riid
));
...
...
@@ -2037,7 +2036,7 @@ static HRESULT WINAPI HTMLPerformanceNavigation_QueryInterface(IHTMLPerformanceN
static
ULONG
WINAPI
HTMLPerformanceNavigation_AddRef
(
IHTMLPerformanceNavigation
*
iface
)
{
HTMLPerformanceNavigation
*
This
=
impl_from_IHTMLPerformanceNavigation
(
iface
);
LONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
LONG
ref
=
dispex_ref_incr
(
&
This
->
dispex
);
TRACE
(
"(%p) ref=%ld
\n
"
,
This
,
ref
);
...
...
@@ -2047,13 +2046,10 @@ static ULONG WINAPI HTMLPerformanceNavigation_AddRef(IHTMLPerformanceNavigation
static
ULONG
WINAPI
HTMLPerformanceNavigation_Release
(
IHTMLPerformanceNavigation
*
iface
)
{
HTMLPerformanceNavigation
*
This
=
impl_from_IHTMLPerformanceNavigation
(
iface
);
LONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
LONG
ref
=
dispex_ref_decr
(
&
This
->
dispex
);
TRACE
(
"(%p) ref=%ld
\n
"
,
This
,
ref
);
if
(
!
ref
)
release_dispex
(
&
This
->
dispex
);
return
ref
;
}
...
...
@@ -2147,6 +2143,13 @@ static inline HTMLPerformanceNavigation *HTMLPerformanceNavigation_from_Dispatch
return
CONTAINING_RECORD
(
iface
,
HTMLPerformanceNavigation
,
dispex
);
}
static
void
HTMLPerformanceNavigation_traverse
(
DispatchEx
*
dispex
,
nsCycleCollectionTraversalCallback
*
cb
)
{
HTMLPerformanceNavigation
*
This
=
HTMLPerformanceNavigation_from_DispatchEx
(
dispex
);
if
(
This
->
timing
)
note_cc_edge
((
nsISupports
*
)
&
This
->
timing
->
IHTMLPerformanceTiming_iface
,
"timing"
,
cb
);
}
static
void
HTMLPerformanceNavigation_unlink
(
DispatchEx
*
dispex
)
{
HTMLPerformanceNavigation
*
This
=
HTMLPerformanceNavigation_from_DispatchEx
(
dispex
);
...
...
@@ -2165,6 +2168,7 @@ static void HTMLPerformanceNavigation_destructor(DispatchEx *dispex)
static
const
dispex_static_data_vtbl_t
HTMLPerformanceNavigation_dispex_vtbl
=
{
.
destructor
=
HTMLPerformanceNavigation_destructor
,
.
traverse
=
HTMLPerformanceNavigation_traverse
,
.
unlink
=
HTMLPerformanceNavigation_unlink
};
...
...
@@ -2284,7 +2288,6 @@ static HRESULT WINAPI HTMLPerformance_get_navigation(IHTMLPerformance *iface,
return
E_OUTOFMEMORY
;
navigation
->
IHTMLPerformanceNavigation_iface
.
lpVtbl
=
&
HTMLPerformanceNavigationVtbl
;
navigation
->
ref
=
1
;
navigation
->
timing
=
This
->
timing
;
IHTMLPerformanceTiming_AddRef
(
&
This
->
timing
->
IHTMLPerformanceTiming_iface
);
...
...
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