mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 1333925 Make CompositionEvent::mRanges cycle collected r=smaug
CompositionEvent extends a cycle collected class UIEvent. It also contains a TextClauseArray member field which consists of cycle collected TextClause items. MozReview-Commit-ID: MYmacUDevB --HG-- extra : rebase_source : a268cbf90325bcfa9ac76e88e7f4f88007c83ea9
This commit is contained in:
parent
8d8f935fef
commit
fdb5caa8bd
@ -56,10 +56,13 @@ CompositionEvent::Constructor(const GlobalObject& aGlobal,
|
||||
return e.forget();
|
||||
}
|
||||
|
||||
NS_IMPL_CYCLE_COLLECTION_INHERITED(CompositionEvent, UIEvent,
|
||||
mRanges)
|
||||
|
||||
NS_IMPL_ADDREF_INHERITED(CompositionEvent, UIEvent)
|
||||
NS_IMPL_RELEASE_INHERITED(CompositionEvent, UIEvent)
|
||||
|
||||
NS_INTERFACE_MAP_BEGIN(CompositionEvent)
|
||||
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED(CompositionEvent)
|
||||
NS_INTERFACE_MAP_END_INHERITING(UIEvent)
|
||||
|
||||
void
|
||||
|
@ -26,6 +26,7 @@ public:
|
||||
WidgetCompositionEvent* aEvent);
|
||||
|
||||
NS_DECL_ISUPPORTS_INHERITED
|
||||
NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED(CompositionEvent, UIEvent)
|
||||
NS_FORWARD_TO_UIEVENT
|
||||
|
||||
static already_AddRefed<CompositionEvent> Constructor(const GlobalObject& aGlobal,
|
||||
|
Loading…
Reference in New Issue
Block a user