Bug 1499861 - Make HTMLOptionsCollection::mSelect into a strong reference. r=qDot

The cycle collector makes weak references like this obsolete.
This commit is contained in:
Andrew McCreight
2018-11-07 08:38:42 -05:00
parent 896d497e97
commit 2b7bd77b55
4 changed files with 8 additions and 59 deletions

View File

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