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:
Masayuki Nakano 2017-01-26 15:35:09 +09:00
parent 8d8f935fef
commit fdb5caa8bd
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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,