Skip to content

Commit 93acdfa

Browse files
Olli PettayOlli Pettay
authored andcommitted
Bug 1777574, automate CC zone handling, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D155084
1 parent 983dac4 commit 93acdfa

File tree

336 files changed

+589
-543
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

336 files changed

+589
-543
lines changed

accessible/aom/AccessibleNode.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class AccessibleNode : public nsISupports, public nsWrapperCache {
101101
explicit AccessibleNode(nsINode* aNode);
102102

103103
NS_DECL_CYCLE_COLLECTING_ISUPPORTS;
104-
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(AccessibleNode);
104+
NS_DECL_CYCLE_COLLECTION_WRAPPERCACHE_CLASS(AccessibleNode);
105105

106106
JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) final;
107107
dom::ParentObject GetParentObject() const;

devtools/shared/heapsnapshot/DominatorTree.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class DominatorTree final : public nsISupports, public nsWrapperCache {
3838
};
3939

4040
NS_DECL_CYCLE_COLLECTING_ISUPPORTS;
41-
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(DominatorTree);
41+
NS_DECL_CYCLE_COLLECTION_WRAPPERCACHE_CLASS(DominatorTree);
4242

4343
nsISupports* GetParentObject() const { return mParent; }
4444

devtools/shared/heapsnapshot/HeapSnapshot.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class HeapSnapshot final : public nsISupports, public nsWrapperCache {
119119
nsAString& outSnapshotId);
120120

121121
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
122-
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(HeapSnapshot)
122+
NS_DECL_CYCLE_COLLECTION_WRAPPERCACHE_CLASS(HeapSnapshot)
123123
MOZ_DECLARE_REFCOUNTED_TYPENAME(HeapSnapshot)
124124

125125
nsISupports* GetParentObject() const { return mParent; }

docshell/base/BrowsingContextGroup.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class DocGroup;
3838
class BrowsingContextGroup final : public nsWrapperCache {
3939
public:
4040
NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(BrowsingContextGroup)
41-
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_NATIVE_CLASS(BrowsingContextGroup)
41+
NS_DECL_CYCLE_COLLECTION_NATIVE_WRAPPERCACHE_CLASS(BrowsingContextGroup)
4242

4343
// Interact with the list of synced contexts. This controls the lifecycle of
4444
// the BrowsingContextGroup and contexts loaded within them.

docshell/base/WindowContext.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ NS_INTERFACE_MAP_END
574574
NS_IMPL_CYCLE_COLLECTING_ADDREF(WindowContext)
575575
NS_IMPL_CYCLE_COLLECTING_RELEASE(WindowContext)
576576

577-
NS_IMPL_CYCLE_COLLECTION_CLASS(WindowContext)
577+
NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE_CLASS(WindowContext)
578578

579579
NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN(WindowContext)
580580
if (gWindowContexts) {
@@ -593,8 +593,6 @@ NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN(WindowContext)
593593
NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mNonSyntheticChildren)
594594
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
595595

596-
NS_IMPL_CYCLE_COLLECTION_TRACE_WRAPPERCACHE(WindowContext)
597-
598596
} // namespace dom
599597

600598
namespace ipc {

docshell/base/WindowContext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class WindowContext : public nsISupports, public nsWrapperCache {
100100
MOZ_DECL_SYNCED_CONTEXT(WindowContext, MOZ_EACH_WC_FIELD)
101101

102102
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
103-
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(WindowContext)
103+
NS_DECL_CYCLE_COLLECTION_WRAPPERCACHE_CLASS(WindowContext)
104104

105105
public:
106106
static already_AddRefed<WindowContext> GetById(uint64_t aInnerWindowId);

docshell/shistory/ChildSHistory.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ NS_INTERFACE_MAP_END
264264
NS_IMPL_CYCLE_COLLECTING_ADDREF(ChildSHistory)
265265
NS_IMPL_CYCLE_COLLECTING_RELEASE(ChildSHistory)
266266

267-
NS_IMPL_CYCLE_COLLECTION_CLASS(ChildSHistory)
267+
NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE_CLASS(ChildSHistory)
268268

269269
NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN(ChildSHistory)
270270
if (tmp->mHistory) {
@@ -278,8 +278,6 @@ NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN(ChildSHistory)
278278
NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mBrowsingContext, mHistory)
279279
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
280280

281-
NS_IMPL_CYCLE_COLLECTION_TRACE_WRAPPERCACHE(ChildSHistory)
282-
283281
JSObject* ChildSHistory::WrapObject(JSContext* cx,
284282
JS::Handle<JSObject*> aGivenProto) {
285283
return ChildSHistory_Binding::Wrap(cx, this, aGivenProto);

docshell/shistory/ChildSHistory.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class BrowsingContext;
3737
class ChildSHistory : public nsISupports, public nsWrapperCache {
3838
public:
3939
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
40-
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(ChildSHistory)
40+
NS_DECL_CYCLE_COLLECTION_WRAPPERCACHE_CLASS(ChildSHistory)
4141
nsISupports* GetParentObject() const;
4242
JSObject* WrapObject(JSContext* cx,
4343
JS::Handle<JSObject*> aGivenProto) override;

dom/animation/AnimationEffect.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
namespace mozilla::dom {
1818

19-
NS_IMPL_CYCLE_COLLECTION_CLASS(AnimationEffect)
19+
NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE_CLASS(AnimationEffect)
2020
NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN(AnimationEffect)
2121
NS_IMPL_CYCLE_COLLECTION_UNLINK(mDocument, mAnimation)
2222
NS_IMPL_CYCLE_COLLECTION_UNLINK_PRESERVED_WRAPPER
@@ -26,8 +26,6 @@ NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN(AnimationEffect)
2626
NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mDocument, mAnimation)
2727
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
2828

29-
NS_IMPL_CYCLE_COLLECTION_TRACE_WRAPPERCACHE(AnimationEffect)
30-
3129
NS_IMPL_CYCLE_COLLECTING_ADDREF(AnimationEffect)
3230
NS_IMPL_CYCLE_COLLECTING_RELEASE(AnimationEffect)
3331

dom/animation/AnimationEffect.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class Document;
3030
class AnimationEffect : public nsISupports, public nsWrapperCache {
3131
public:
3232
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
33-
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(AnimationEffect)
33+
NS_DECL_CYCLE_COLLECTION_WRAPPERCACHE_CLASS(AnimationEffect)
3434

3535
AnimationEffect(Document* aDocument, TimingParams&& aTiming);
3636

0 commit comments

Comments
 (0)