Make HTMLOptionsCollection::mSelect into a strong reference.

The cycle collector makes weak references like this obsolete.
This commit is contained in:
wolfbeast 2018-12-14 15:08:52 +01:00 committed by Roy Tam
commit a3386fbe38
4 changed files with 8 additions and 59 deletions

View file

@ -130,11 +130,6 @@ HTMLSelectElement::HTMLSelectElement(already_AddRefed<mozilla::dom::NodeInfo>& a
NS_EVENT_STATE_VALID);
}
HTMLSelectElement::~HTMLSelectElement()
{
mOptions->DropReference();
}
// ISupports
NS_IMPL_CYCLE_COLLECTION_CLASS(HTMLSelectElement)