diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-02-20 16:47:04 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-02-20 16:47:04 +0100 |
commit | d53b11c9dc34d0a8c3bb4ad862cff1e0ce566457 (patch) | |
tree | ab7366217c922e428845619f5e95b3c28285fa81 /dom/performance/PerformanceMainThread.cpp | |
parent | 28f67bddcf4e30abcdfb0bfc6bc4d5300aaa6621 (diff) | |
download | UXP-d53b11c9dc34d0a8c3bb4ad862cff1e0ce566457.tar UXP-d53b11c9dc34d0a8c3bb4ad862cff1e0ce566457.tar.gz UXP-d53b11c9dc34d0a8c3bb4ad862cff1e0ce566457.tar.lz UXP-d53b11c9dc34d0a8c3bb4ad862cff1e0ce566457.tar.xz UXP-d53b11c9dc34d0a8c3bb4ad862cff1e0ce566457.zip |
Issue #316 - Be more gentle with the CC and nursery.
Diffstat (limited to 'dom/performance/PerformanceMainThread.cpp')
-rw-r--r-- | dom/performance/PerformanceMainThread.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dom/performance/PerformanceMainThread.cpp b/dom/performance/PerformanceMainThread.cpp index 4c800005f..b95a91ea6 100644 --- a/dom/performance/PerformanceMainThread.cpp +++ b/dom/performance/PerformanceMainThread.cpp @@ -11,7 +11,7 @@ namespace mozilla { namespace dom { -#ifdef MOZ_DEVTOOLS_SERVER + NS_IMPL_CYCLE_COLLECTION_CLASS(PerformanceMainThread) NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN_INHERITED(PerformanceMainThread, @@ -19,8 +19,10 @@ NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN_INHERITED(PerformanceMainThread, NS_IMPL_CYCLE_COLLECTION_UNLINK(mTiming, mNavigation, mDocEntry) +#ifdef MOZ_DEVTOOLS_SERVER tmp->mMozMemory = nullptr; mozilla::DropJSObjects(this); +#endif NS_IMPL_CYCLE_COLLECTION_UNLINK_END NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INHERITED(PerformanceMainThread, @@ -32,15 +34,13 @@ NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END NS_IMPL_CYCLE_COLLECTION_TRACE_BEGIN_INHERITED(PerformanceMainThread, Performance) +#ifdef MOZ_DEVTOOLS_SERVER NS_IMPL_CYCLE_COLLECTION_TRACE_JS_MEMBER_CALLBACK(mMozMemory) +#endif NS_IMPL_CYCLE_COLLECTION_TRACE_END NS_IMPL_ADDREF_INHERITED(PerformanceMainThread, Performance) NS_IMPL_RELEASE_INHERITED(PerformanceMainThread, Performance) -#else -NS_IMPL_CYCLE_COLLECTION_INHERITED(PerformanceMainThread, Performance - mTiming, mNavigation, mDocEntry) -#endif // QueryInterface implementation for PerformanceMainThread NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(PerformanceMainThread) |